Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
a = ItemExtract( 1, rect, "," ) ;--------------------------------------------------------------------------------; ;GetWindowPos : Gets window position in real screen x,y ; ;--------------------------------------------------------------------------------; ;handle : dialog handle of window ; ;--------------------------------------------------------------------------------; ;Returns: string = "xpos,ypos,widht,height" ; ;--------------------------------------------------------------------------------; #DefineFunction GetWindowPos(handle) user32=StrCat(DirWindows(1),"user32.dll") lpRect = BinaryAlloc(16) ret = -1 If DllCall(user32,long:"GetWindowRect",long:handle,lpbinary:lpRect) Then ret = StrCat(BinaryPeek4(lpRect,0),",",BinaryPeek4(lpRect,4),",",BinaryPeek4(lpRect,8),",",BinaryPeek4(lpRect,12)) EndIf BinaryFree(lpRect) Return ret #EndFunction handle=DllHwnd("Untitled - Notepad") ; rect=GetWindowPos(handle) Message("numbers",rect)
Article ID: W16748
File Created: 2005:02:18:12:22:14
Last Updated: 2005:02:18:12:22:14