Posted by member 71746 on 2003-11-15 20:57:11 link

So I've found a way to accomplish what I need to accomplish - instead of using *NetLoadModule and a !Hook, I'm using *WharfModule to load systray2-lsbox (doesn't work with sysray2-2.0.1 as it has too efficient of a loading routine)

Still it'd be nice to have a module or ideally a built-into-litestep.exe method of changing e-vars.
Maybe something like

!EVarSet $EVarName$ "new string/value"
; this would set a new value for the given evar

!EVarEval $EVarName$ (equation)
; this would evaluate (equation) and place the result in $EVarName$

Example:
Simple counter:

theme.rc:
Counter 0
; defines the e-var $Counter$

hotkey.rc:
*Hotkey Win C !EVarEval $Counter$ $Counter+1$
; increments $Counter$ by one
*Hotkey Win A !Alert "We're up to $Counter$ so far..." "Current Count"
; displays counter data