Afarion Posted June 26, 2020 Share Posted June 26, 2020 Local $keyCode = 49, $keyDelay = 40 Local $keySequence[] = ["q", "w", "e"] HotKeySet("i", "keySpam") While 1 Sleep(100) WEnd Func keySpam() While _IsPressed($keyCode) for $key in $keySequence send($key) sleep($keyDelay) If Not _IsPressed($keyCode) Then ExitLoop(2) Next WEnd EndFunc Expected behavior -- while "i" is down, it would send"qweqweqweqweqwe..." Actual behavior -- while "i" is down, it sends "qweqweqweqqqqqqqqqqqqqqqqqqqqqqq..." How to make it work like expected? Link to comment Share on other sites More sharing options...
Developers Jos Posted June 26, 2020 Developers Share Posted June 26, 2020 Why do you need this spamming anyways? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Afarion Posted June 26, 2020 Author Share Posted June 26, 2020 Application testing Link to comment Share on other sites More sharing options...
Developers Jos Posted June 26, 2020 Developers Share Posted June 26, 2020 Care to share which application would need this? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Afarion Posted June 26, 2020 Author Share Posted June 26, 2020 Notes app with live cross device updating text fields, which occasionally have a weird display bug Link to comment Share on other sites More sharing options...
argumentum Posted June 26, 2020 Share Posted June 26, 2020 ...your question is, of one that don't think like a programmer. The answer is obvious. But until we don't get an "ok"... it just looks like a prank so far. Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
Developers Jos Posted June 26, 2020 Developers Share Posted June 26, 2020 It is clear the OP doesn't want to give me any serious answer.... So just feel free to burn brain cycles on somebody like that. jchd and argumentum 2 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Nine Posted June 26, 2020 Share Posted June 26, 2020 37 minutes ago, Jos said: feel free to burn brain cycles on somebody like that lmao “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy 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