CODE
procedure ctbf
While 1 = 1
IF {Globalkeys} contains 50
ClearGlobalKeys
Call Start
Else
Keydown $jump 10
LeftMouseDown
Delay 13
LeftMouseUp
Keydown $block 10
Delay 252
LeftMouseDown
Delay 13
LeftMouseUp
Keydown $block 10
Delay 252
LeftMouseDown
Delay 13
LeftMouseUp
Keydown $block 10
Delay 252
End
End
End
While 1 = 1
IF {Globalkeys} contains 50
ClearGlobalKeys
Call Start
Else
Keydown $jump 10
LeftMouseDown
Delay 13
LeftMouseUp
Keydown $block 10
Delay 252
LeftMouseDown
Delay 13
LeftMouseUp
Keydown $block 10
Delay 252
LeftMouseDown
Delay 13
LeftMouseUp
Keydown $block 10
Delay 252
End
End
End
with this code, i can turn the macro on and off by pressing the same key again.
however, i want this macro to work for 2 keys, but if i add another
IF {Globalkeys} contains ##
ClearGlobalKeys
the macro doesn't work and says that a previous procedure needs to finish first.
