Usecase: Mouse Jiggle Macro with Indicators

Hello,

after one year I finally consider my mouse jiggle configuration stable and useful :slight_smile:

Here is my approach:

$onInit:

setLedTxt 500 "INI"

// Init global variables used by other scripts
setVar jigActive 0
setVar powerClickActive 0

Mouse Jiggle:

// Toggle jiggle state
setVar jigActive !$jigActive
if ($jigActive == 0) break

// Enable Backlight
set backlight.keyRgb.base.80 255 255 0

// Show start sequence
setLedTxt 500 "JIG"
setLedTxt 500 "ON!"

loop:

<UI: Move pointer by 10px rightward>

if ($jigActive == 0) goTo exit
delayUntil 250

<UI: Move pointer by 10px leftward>

if ($jigActive == 0) goTo exit
delayUntil 250

if ($jigActive == 1) goTo loop

exit:

// Disable Backlight
set backlight.keyRgb.base.80 255 255 255

// Show end sequence
setLedTxt 500 "JIG"
setLedTxt 500 "OFF"

5 Likes