Sign in to follow this  
Followers 0
astrionn

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

6 posts in this topic

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 ?

Share this post


Link to post
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 " , "

Share this post


Link to post
Share on other sites

@JohnOne thank you it works ^_^ last question for now is is there something like controlScrollMouseWheel ? to emulate a scroll of the mouswheel ? ( in combination with the ctrl ... like this : ctrl+ wheel(-100)

ctrl+ wheel(-100)
Sleep(1000)
wheel(100)

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  
Followers 0