Jump to content

Recommended Posts

Posted

I noticed when I use _IsPressed(), I'm getting keypress even when my app is not in focus.  I just need to accept and figure out what keys are pressed only when it's the front most/active application.  What am I doing wrong?

 

example:

While 1
   If _IsPressed("0D", $hDLL) Then
      ;equiv to pressing "="
      ... do something but only when it's the active application
   EndIf
    Sleep(25) ;Throttle
 WEnd

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
×
×
  • Create New...