aa2zz6 Posted October 27, 2015 Share Posted October 27, 2015 (edited) How would you move mouse inside GUI using coodinates? I used coordinate mode > Window] to get the coodinate for inside the GUI. The problem is that the mouse doesn't move inside when it's executed.The AutoIt v3 Window Info:Title: ExampleClass: AutoIt v3 GUI#include <GUIConstantsEx.au3> Example() Func Example() ; Create a GUI with various controls. Local $hGUI = GUICreate("Example", 300, 200) ; Display the GUI. GUISetState(@SW_SHOW, $hGUI) Local $iPID = 0 MouseMove(156,98,1) ; Loop until the user exits. While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop EndSwitch WEnd ; Delete the previous GUI and all controls. GUIDelete($hGUI) ; Close the Notepad process using the PID returned by Run. If $iPID Then ProcessClose($iPID) EndFunc ;==>Example Edited October 27, 2015 by aa2zz6 Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted October 27, 2015 Moderators Share Posted October 27, 2015 Hi @aa2zz6, try Option MouseCoordMode "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
jdelaney Posted October 27, 2015 Share Posted October 27, 2015 (edited) First off, make sure your window is active, and then include this at the top of your script:AutoItSetOption("MouseCoordMode",2) Edited October 27, 2015 by jdelaney IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. Link to comment Share on other sites More sharing options...
aa2zz6 Posted October 27, 2015 Author Share Posted October 27, 2015 Thanks for the feedback. Works now! 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