Jump to content

Send Key help. Locking key while hold down


Recommended Posts

Hey everyone,

 

i am pretty new to this topic and currently having an issue in my code. I am programming a autoit script which helps me in my work sending user input automatically by pressing a combination of keys. The issue is if i hold down a key on the keyboard and simultaneously use my script to send that key in a combination, then the key is kind of locked until i release it and press again. Is there a way to avoid that?

 

if _IsPressed ( "60" , $hDLL ) Then
        Send("{NUMPAD8}")
        sleep(1000)
        Send("{NUMPAD6}")
        Send("{NUMPAD0}")
        Send("{NUMPAD4}")
    Endif

 

Thank in Advance! 

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...