Jump to content
Sign in to follow this  

GetInstance postion

Recommended Posts

Hello im new in the forum.

Maybe someon can help me i need to get a postion of some button

it does not work:

Local $aPos = WinGetPos("[CLASS:WindowsForms10.Window.8.app.0.338574f_r13_ad127]")
[CLASS:WindowsForms10.Window.8.app.0.338574f_r13_ad1; INSTANCE:27]

i need X,Y.W,H = $aPos[0],$aPos[1],$aPos[2],$aPos[3]

Share this post

Link to post
Share on other sites
the point is to press "Call"
it is in

in instance 27

i try like this :

Local $hWnd = WinWait("[CLASS:WindowsForms10.Window.8.app.0.338574f_r13_ad127]", "", 10)

    Local $aPos = ControlGetPos($hWnd, "", "Call")

    MsgBox($MB_SYSTEMMODAL, "", "Position: " & $aPos[0] & ", " & $aPos[1] & @CRLF & "Size: " & $aPos[2] & ", " & $aPos[3])

but it does not give a good result
aPos = 0;
So how click on the button of whom we know only that it is located in 

and instances


Share this post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...