Jump to content

bind 2 keys to 1 key


josh77
 Share

Recommended Posts

hey guys im tryng to create a macro following the instructios below ... can u guys post how you would do that macro ? thankssss

Get an scriptable instrument for some macros - this could be a programmable Keyboard or a software.

Now you have to place all of your chosen abilities which you wanna use for this to your first abilitybar, for example to the keys 1 and 2. Now you have to create a macro which combines all two keystrokes on one button - for example the key #3, with your best DMG ability (which "HAVE" a CD on it) at your abilitybar. At next you have to set the #3 key to an "use by press" (easy if you have a g15 or something like that) that you don't have to press this button again all the time and can still push them down. Now the trick in this is, to create a second macro which spams the first macro hundreds of time by pressing the #3 key.

Edited by josh77
Link to comment
Share on other sites

For a key that presses two keys, try something like this.

HotKeySet("3", "OneAndTwo")

Func OneAndTwo()
     Send("12") ;presses the 1 key, followed by the 2 key
EndFunc

For spamming the macro, you could do something like

For $i = 0 To 100
OneAndTwo()
Next

Just read a little of the help file about the functions mentioned, and it should be easy to make a script to do this.

Link to comment
Share on other sites

something like this?

HotKeySet("a", "Press_C_and_B")
HotKeySet('{ESC}', '_EXIT')

Main()

Func Main()
    While 1
        Sleep(100)
    WEnd
EndFunc   ;==>main

Func Press_C_and_B()

    Send("{c down}") ;Holds the c key down
    Send("{b down}") ;Holds the b key down
    Send("{c up}") ;Releases the c key
    Send("{b up}") ;Releases the b key

    Main()
EndFunc   ;==>Press_C_and_B

Func _EXIT()
    $iMsgBoxAnswer = MsgBox(0, "", "Goodbye")
    Exit
EndFunc   ;==>_EXIT
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...