Sign in to follow this  
Followers 0
Shonnie

LAGG !

2 posts in this topic

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.

Share this post


Link to post
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

Share this post


Link to post
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
Sign in to follow this  
Followers 0