Jump to content

i need some help with this code i want to bind D to press D+E same time and A+Q and same time


chicomat
 Share

Recommended Posts

i made this code but when i run it it loops and spam de keys i only want to when i hold up the key stops and when i push down starts again

HotKeySet("a", "OneAndTwo")
HotKeySet("d", "OneAndThree")
Main()

Func Main()
    While 1

    WEnd
 EndFunc   ;==>main

Func OneAndTwo()
   While "1"
     Send("aq")
   WEnd
  EndFunc

Func OneAndThree()
   while "1"
     Send("de")
     WEnd
  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...