Posted by member 124072 on 2006-01-11 16:09:16
ive been pondering on how to make a custom toggle button for a show/hide. so far ive gotten mzscript to define all the label hide/shows to custom !bang commands, and ive got
im using multikeys-3.1 since other hotkey mods got kinda messed up when i was trying to bind the keypad, but anywho. im also doing
im pretty sure i messed up the textreplace bang and i know a refresh in there would make it load the new variable, but is there a mod that can make a hotkey with 2 different binds to it defined by an IF THEN?
IF amp = 0 THEN
*mkey all Ctrl Insert !showamp
ENDIF
IF amp = 1 THEN
*mkey all Ctrl Insert !hideamp
ENDIF
*mkey all Ctrl Insert !showamp
ENDIF
IF amp = 1 THEN
*mkey all Ctrl Insert !hideamp
ENDIF
im using multikeys-3.1 since other hotkey mods got kinda messed up when i was trying to bind the keypad, but anywho. im also doing
;amphide
*Script bang !hideamp
*Script exec !TextReplace "$ConfigDir$themevars.rc" "amp.*" amp 0"
*Script exec !execute [!labelhide lsxclip] [!labelhide lsxclip2] [!labelhide topbar] [!labelhide topbar3] [!labelhide topbar1]
*Script ~bang
;ampshow
*Script bang !showamp
*Script exec !TextReplace "$ConfigDir$themevars.rc" "amp.*" amp 1"
*Script exec !execute [!labelshow lsxclip] [!labelhide lsxclip2] [!labelshow topbar] [!labelhide topbar3] [!labelshow topbar1]
*Script ~bang
*Script bang !hideamp
*Script exec !TextReplace "$ConfigDir$themevars.rc" "amp.*" amp 0"
*Script exec !execute [!labelhide lsxclip] [!labelhide lsxclip2] [!labelhide topbar] [!labelhide topbar3] [!labelhide topbar1]
*Script ~bang
;ampshow
*Script bang !showamp
*Script exec !TextReplace "$ConfigDir$themevars.rc" "amp.*" amp 1"
*Script exec !execute [!labelshow lsxclip] [!labelhide lsxclip2] [!labelshow topbar] [!labelhide topbar3] [!labelshow topbar1]
*Script ~bang
im pretty sure i messed up the textreplace bang and i know a refresh in there would make it load the new variable, but is there a mod that can make a hotkey with 2 different binds to it defined by an IF THEN?