Jump to content
Sign in to follow this  
poldz123

bind to certain window

Recommended Posts

poldz123

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 by poldz123

Share this post


Link to post
Share on other sites
jvds
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

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  

×