Setting a persistent global variable with mapped keys
I'd like to define a variable within a step in a mapped key which can be read and compared within another mapped key later. Is this possible?
Quick example of what I'm trying to accomplish with this:
Key 1:
--Step 1:
---Set Repeater Target to 'all other'
---Enable Keyboard / Mouse Repeating
---Set 'Variable1' to 1
--Step 2:
---Disable Keyboard / Mouse Repeating
---Set 'Variable1' to 0
Key 2:
--Step 1:
---Set Repeater Target to {SLOT1}
---Enable Keyboard/Mouse Repeating
--Step 2:
---Set repeater Target to 'All Other'
---If 'Variable1' Equals 1
--- -> Enable Keyboard / Mouse Repeating
---Else
--- -> Disable Keyboard / Mouse Repeating
Basically I want to use this to temporarily control Slot 1 and after I'm done doing that return to my original repeater state whether it was on or off.
Thanks.
EDIT: I've found a dirty solution to this by just activating Key 1 twice in the second step of Key 2 (Which in essence resets my repeater back where it was before activating Key 2) but that's not very clean and I'm wondering if there's a better way to do it.
Quick example of what I'm trying to accomplish with this:
Key 1:
--Step 1:
---Set Repeater Target to 'all other'
---Enable Keyboard / Mouse Repeating
---Set 'Variable1' to 1
--Step 2:
---Disable Keyboard / Mouse Repeating
---Set 'Variable1' to 0
Key 2:
--Step 1:
---Set Repeater Target to {SLOT1}
---Enable Keyboard/Mouse Repeating
--Step 2:
---Set repeater Target to 'All Other'
---If 'Variable1' Equals 1
--- -> Enable Keyboard / Mouse Repeating
---Else
--- -> Disable Keyboard / Mouse Repeating
Basically I want to use this to temporarily control Slot 1 and after I'm done doing that return to my original repeater state whether it was on or off.
Thanks.
EDIT: I've found a dirty solution to this by just activating Key 1 twice in the second step of Key 2 (Which in essence resets my repeater back where it was before activating Key 2) but that's not very clean and I'm wondering if there's a better way to do it.
I want YOU! To ask me questions
Tell me what you want a tutorial on in my request thread Here
My games:
Eve Online
Expertise:
Mining
Shooting red crosses
IsBoxer Setup
VideoFX
Tell me what you want a tutorial on in my request thread Here
My games:
Eve Online
Expertise:
Mining
Shooting red crosses
IsBoxer Setup
VideoFX