poldz123 Posted July 13, 2015 Posted July 13, 2015 (edited) I am currently learning AutoIt and want to create a script that simulate a click on a certain window even though it is overlapped by other windows.What I want is to bind a script on that window alone without affecting the others. Lets say Notepad window, I want to simulate a click on that even though it is overlapped by chrome window. Edited July 13, 2015 by poldz123
jvds Posted July 13, 2015 Posted July 13, 2015 Run("calc.exe") WinWait("Calculator") WinSetState("Calculator","",@SW_MINIMIZE ) ;click (5*5=) ControlClick ("Calculator","",'[CLASS:Button; INSTANCE:10]') ;5 ControlClick ("Calculator","",'[CLASS:Button; INSTANCE:21]') ;* ControlClick ("Calculator","",'[CLASS:Button; INSTANCE:10]') ;5 sleep(2000) ControlClick ("Calculator","",'[CLASS:Button; INSTANCE:28]') ;=go to help file, --> Window Managment --> Controls, there you have a fiew funcs to look at for a start, also use autoit window spy to get controls IDs and so on
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