Jump to content

controlclick --> control press key ? press key in not active window


Recommended Posts

Is there a way to emulate a key press to a not active window ? like the control click just with pressing a key ..

and if such a thing is there is there a similiar for wheek scrolls ? emulating a wheelscroll in combination to a window in the background ?

Link to comment
Share on other sites

Thx @JohnOne but i have a problem with the controlID of controlSend... if I take notepad as example and I want autoit to do smthing like ctrl+N for a new window the code could look like this couldnt it ? 

$fenster = WinGetHandle( "test.txt - Editor")
ControlSend ( $fenster, "", "Edit1", "{CTRL}+"N"")

I guess I failed with the syntax after the 3rd " , "

Link to comment
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
 Share

  • Recently Browsing   0 members

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