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


Recommended Posts

Posted

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

Posted

mistake on the tittle i want to bind 

D to press D+E at the same time when i hold 

and 

A to press A+Q at the same time when i hold

but it loops for ever 

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...