Posted by member 137182 on 2004-04-07 05:56:18 link

HI,

a new Problem. I edited the simplicity theme to show the systray always. Now it is shown allway, but i want a button, which can hide it. But this is not the problem^^.The first thing i had to know is how can i change values in the flags.rc. I thought it just go so:

flags.rc:

tray_on 0

base.rc:

*Shortcut "" 1020 -63 systray_right.bmp systray_righta.bmp .none #19 !Enabletray
*Shortcut "" 1000 -63 systray_left.bmp systray_lefta.bmp .none #19 !Disabletray

scrip.rc:

*Script bang !Enabletray
*Script exec !textreplace "$ConfigDir$flags.rc" "^(tray_on *)0" "\11"
*Script exec !Recycle
*Script ~bang

*Script bang !Disabletray
*Script exec !textreplace "$ConfigDir$flags.rc" "^(tray_on *)1" "\10"
*Script exec !Recycle
*Script ~bang

But he doesn't do anything.. i just want to change the tray_on 0 in tray_on 1 ...

how does this work?

btw.: I use shortcut2 2.0.1