I am using a Razer Tarantula keyboard that's got 10 custom Macro Keys, and what I would like to do is to create a specific usage for one of these Macro Keys.
The left row of Macro Keys are called L1-L5.
Let's take the L1 Macro key in this example.
When I press the L1 Macro key (this can be set up in the keyboard driver software that comes with the keyboard, so no problems there), I've made the Macro as to simulate pressing CTRL+1, CTRL+2 and CTRL+3 with just 50 milliseconds delay in between.
What I need my script to achieve is this:
Pressing L1 = CTRL+1, CTRL+2, CTRL+3, 6 seconds delay... REPEAT.
Basically, a Macro key that repeats itself infinitely. And when pressed again, the repeating stops/breaks.
I have searched elsewhere, and came up with a small script written by Tonne. It seems to accomplish what I need to do, but I would like to make sure by asking one of you guys first.
Here's the script code:
#MaxThreadsPerHotkey 2 $+e:: PressKey := ! PressKey ;Toggle PressKey True/False Loop { If ! PressKey Break ;If PressKey is False, stop pressing key Send +e Sleep 500 ;Delay between keypresses } Return #MaxThreadsPerHotkey 1
It looks like this script will accomplish what I need.
I will need to change the delay time and the key pressed. 'E' key is substituted with my 'L1' macro key, and delay time is set to 600 milliseconds (6 seconds?).
Correct?
Cheers,
Bassa[/code]