Jump to content

Recommended Posts

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...