astrionn Posted January 4, 2015 Share 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 ? Link to comment Share on other sites More sharing options...
JohnOne Posted January 4, 2015 Share Posted January 4, 2015 ControlSend AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
astrionn Posted January 4, 2015 Author Share 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 " , " Link to comment Share on other sites More sharing options...
JohnOne Posted January 4, 2015 Share 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. Link to comment Share on other sites More sharing options...
astrionn Posted January 4, 2015 Author Share 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) Link to comment Share on other sites More sharing options...
JohnOne Posted January 4, 2015 Share 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. Link to comment Share on other sites More sharing options...
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