DareDev1l Posted August 15, 2012 Share Posted August 15, 2012 I'd like to ask how can I make 2 actions at a time ? Let's say I want to move the mouse somewhere and while it is moving to there the key L is pressed and hold until the mouse go to that position. I tried to first mousemove and then send the key but it first mousemoved and then pressed the key just like as I expected. I tried doing with the recorder but it only gave me this : Send("aMouseMove(341, 783)) and it wasn't even full , there weren't braces at the end . Thanks in advance Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted August 15, 2012 Moderators Share Posted August 15, 2012 Hi, DareDev1l. As AutoIt is not truly multithreaded, this is not an easy thing to accomplish. AutoIt processes one command at a time. If you search the forum for "multithread" there are a lot of folks who have come up with various workarounds to this issue. You might find one that suits your needs. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
KaFu Posted August 15, 2012 Share Posted August 15, 2012 (edited) How about something like this? Send("{l Down}") MouseMove(100, 100, 0) Send("{l UP}") Edited August 15, 2012 by KaFu OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
DareDev1l Posted August 15, 2012 Author Share Posted August 15, 2012 It worked ! Thanks man , you are great! 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