astrionn Posted January 4, 2015 Posted January 4, 2015 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 ?
JohnOne Posted January 4, 2015 Posted January 4, 2015 ControlSend AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
astrionn Posted January 4, 2015 Author Posted January 4, 2015 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 " , "
JohnOne Posted January 4, 2015 Posted January 4, 2015 ControlSend ( $fenster, "", "Edit1", "^n") AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
astrionn Posted January 4, 2015 Author Posted January 4, 2015 @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)
JohnOne Posted January 4, 2015 Posted January 4, 2015 Not sure, find the keys that do it and send them. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
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