Margen Posted February 14, 2021 Share Posted February 14, 2021 When I press the button F I'd like it to get looped until I release it. I tried making this script however it keeps looping even after I release the F button. I'm sorry, I'm a beginner so I don't really understand what's the problem. I'd really appreciate it if somebody would help me. Quote #include <Misc.au3> While 1 If _IsPressed(46) Then While 1 Send("f") sleep(20) WEnd EndIf sleep(10) WEnd Link to comment Share on other sites More sharing options...
pseakins Posted February 15, 2021 Share Posted February 15, 2021 So, what game are you trying to play? Phil Seakins Link to comment Share on other sites More sharing options...
Margen Posted February 15, 2021 Author Share Posted February 15, 2021 I'm not making this for a game, it's for AMXMODX Link to comment Share on other sites More sharing options...
Nine Posted February 15, 2021 Share Posted February 15, 2021 Nah, it is for a game...No software would make a UI that unfriendly. “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...
Margen Posted February 15, 2021 Author Share Posted February 15, 2021 10 hours ago, Nine said: Nah, it is for a game...No software would make a UI that unfriendly. Well, it's not for a game. But why does it matter? I don't understand. I'm new here. I'd like sleep time to be 500 (half second) Link to comment Share on other sites More sharing options...
Nine Posted February 15, 2021 Share Posted February 15, 2021 Please read forum rules. And if you still think your issue does not relate to any forbidden topics, then I strongly suggest you make a clear story on what is you want to automate. 1- Show the application thru Au3info.exe tool 2- What is the real issue you are facing, not just 10 lines of useless code 3- Explain a detailed description of the input and the expected output “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...
Moderators JLogan3o13 Posted February 15, 2021 Moderators Share Posted February 15, 2021 A couple things here: @Margen as you state yourself it is is for AMXMODX, which is for half-life scripting, this topic does fall afoul of the rules. I suggest you read them now, especially these two bits, before you post again: Quote Launching, automation or script interaction with games or game servers, regardless of the game. Do not repost the same question if the previous thread has been locked - particularly if you merely reword the question to get around one of the prohibitions listed above. For those that know better, you all need to review the forum rules as well: Quote If you feel a post needs Moderator attention, please use the "Report" button next to the post date at the top. please do not enter into an argument with the original poster - that is why we have Moderators. If you are unsure of what you should be doing when you see something out of place, please review this thread. Hopefully we do not, again, have to resort to sanctions to get this point across. "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...
Recommended Posts