Jump to content

Simple _IsPressed detection not working in game - (Locked)

Recommended Posts

Hello, could smb help me in my simple script:

#include <Misc.au3>

Opt("SendKeyDelay", 20)

HotKeySet("{PAUSE}", "On_Exit")
;$hDLL = DllOpen("user32.dll")
While 1
   If _IsPressed("46") Then

Func On_Exit()

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 post
Share on other sites

Welcome to AutoIt forum.  Unfortunately your thread goes against forum rules.  I suggest you read them carefully especially the part about game automation... 

Link to post
Share on other sites
  • Moderators

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 post
Share on other sites
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...