Guest penguindude Posted March 2, 2005 Share Posted March 2, 2005 (edited) Im having trouble with the getwinpos function. it gives me an error to write $size = WinGetPos("SciTe") MsgBox(0, "Active window stats (x,y,width,height):", $size[0] & " " & $size[1] & " " & $size[2] & " " & $size[3]) I use the two lines of source code in the example in the entry in the docs, and i get the error using subscripts on a non array variable or somesuch. Can any of u gurus help? Edited March 2, 2005 by penguindude Link to comment Share on other sites More sharing options...
Josbe Posted March 2, 2005 Share Posted March 2, 2005 Im having trouble with the getwinpos function.I use the two lines of source code in the example in the entry in the docs, and i get the error using subscripts on a non array variable or somesuch. Can any of u gurus help?<{POST_SNAPBACK}>If is that:$size = WinGetPos("") MsgBox(0, "Active window stats (x,y,width,height):", $size[0] & " " & $size[1] & " " & $size[2] & " " & $size[3])You need to specify the window title. e.g.:WinGetPos( "MyWindow", "")More about windows... AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta Link to comment Share on other sites More sharing options...
Guest penguindude Posted March 2, 2005 Share Posted March 2, 2005 If is that:$size = WinGetPos("") MsgBox(0, "Active window stats (x,y,width,height):", $size[0] & " " & $size[1] & " " & $size[2] & " " & $size[3])You need to specify the window title. e.g.:WinGetPos( "MyWindow", "")More about windows...<{POST_SNAPBACK}>oh, duh, right.and i should have the program running, that was my other problem.....THANKS A BUNCH!!! Link to comment Share on other sites More sharing options...
Josbe Posted March 2, 2005 Share Posted March 2, 2005 and i should have the program running, that was my other problem.....Ok...remember these useful functions (related):WinExistsWinWaitWinWaitActive AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now