Jump to content

help with GetWinPos


Recommended Posts

Guest penguindude

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 by penguindude
Link to post
Share on other sites

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...

Link to post
Share on other sites
Guest penguindude

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 post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...