nitz Posted September 24, 2015 Share Posted September 24, 2015 Hello im new in the forum.Maybe someon can help me i need to get a postion of some buttonit 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] Link to comment Share on other sites More sharing options...
JohnOne Posted September 24, 2015 Share Posted September 24, 2015 You probably want ControlGetPos.Also, you might consider adding a little more info to your posts "it does not work" is not good.Good luck. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
nitz Posted September 24, 2015 Author Share Posted September 24, 2015 Sorry,the point is to press "Call"it is in WindowsForms10.Window.8.app.0.338574f_r13_ad1in instance 27i 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_ad1and instances27 Link to comment Share on other sites More sharing options...
JohnOne Posted September 24, 2015 Share Posted September 24, 2015 Try using the window title instead of the class. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. 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