Jump to content

LAGG !


Recommended Posts

I use a while statement to monitor for a keypress then do a function if the key is pressed.

Now i got some serious lag.

Anyone, help please, and explain so i can learn from this experience.

Thank you all who reply.

Link to comment
Share on other sites

Maybe This ??

#include <Misc.au3>

$dll = DllOpen("user32.dll")

While 1
    Sleep ( 250 )
    If _IsPressed("23", $dll) Then
        keys()
        ExitLoop
    EndIf
WEnd
DllClose($dll)

Func keys()
      MsgBox(0,"_IsPressed", "End Key Pressed")
EndFunc
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...