longint300 Posted December 25, 2019 Share Posted December 25, 2019 Hello, could smb help me in my simple script: #RequireAdmin #include <Misc.au3> Opt("SendKeyDelay", 20) HotKeySet("{PAUSE}", "On_Exit") ;$hDLL = DllOpen("user32.dll") While 1 If _IsPressed("46") Then Sleep(100) Send("{F2}") Sleep(100) MouseClick("Right") Sleep(100) MouseClick("Left") Sleep(100) Send("{F1}") Sleep(100) EndIf WEnd Func On_Exit() DllClose($hDLL) Exit EndFunc I play game BF2142 sometimes and in order to make gameplay with helicopter telerocket easier, i wrote this (i m total newbie with programming AutoIt). And there is a problem: in Windows 10 everything works correctly, all buttons seemed to be pressed, but when i start game and sit at heli, F2 button sometimes is not pressed, or only clicks are been done, or F1 button is not pressed, i dont know total chaos, i increased Sleep to 200 nothings worked. Ping is 15 ms. Help please. Link to comment Share on other sites More sharing options...
Nine Posted December 25, 2019 Share Posted December 25, 2019 Welcome to AutoIt forum. Unfortunately your thread goes against forum rules. I suggest you read them carefully especially the part about game automation... “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 December 25, 2019 Moderators Share Posted December 25, 2019 Welcome to the AutoIt forum. Unfortunately you appear to have missed the Forum rules on your way in. Please read them now - particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked. See you soon with a legitimate question I hope. The Moderation team "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