Sign in to follow this  
Followers 0
nitz

GetInstance postion

4 posts in this topic

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



Sorry,
the point is to press "Call"
it is in
WindowsForms10.Window.8.app.0.338574f_r13_ad1

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])

    WinClose($hWnd)
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 
WindowsForms10.Window.8.app.0.338574f_r13_ad1

and instances

27

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  
Followers 0