Posted by member 71746 on 2003-11-07 15:36:33
Anyone know of a good way to update the contents of a popup menu without having to recycle? The only way I can think of is kinda convoluted...
My method is to create a directory in the theme dir named "configpopups" and have subdirectories like "ontop", "transparency", and "vwm".
Within the directories create windows .lnk files (explorer shortcuts) named things like "=always on top" , "floating" and "hug desktop", or "disable transparency" and "level-192"
Include the file "!.exe" in the miscdir, and have the .lnk files point to "!.exe "
For example, the file...
configpopups\ontop\=always on top.lnk
...would point to...
..\..\misc\!.exe !SetAlwaysOnTop
...and in the script file, there would be a bang defined as !SetAlwaysOnTop to do all the always-on-top settings, as well as rename the .lnk files from...
=always on top
floating
hug desktop
...to...
always on top
=floating (presuming that's the one you selected)
hug desktop
then in the popuptheme, just have something like
*Popup "theme config" !DynamicFolder:"$ThemeDir$configpopups"
=-=-=-
So I figure there's probably a better way than that ;) Anyone care to enlighten me? :):)
My method is to create a directory in the theme dir named "configpopups" and have subdirectories like "ontop", "transparency", and "vwm".
Within the directories create windows .lnk files (explorer shortcuts) named things like "=always on top" , "floating" and "hug desktop", or "disable transparency" and "level-192"
Include the file "!.exe" in the miscdir, and have the .lnk files point to "!.exe "
For example, the file...
configpopups\ontop\=always on top.lnk
...would point to...
..\..\misc\!.exe !SetAlwaysOnTop
...and in the script file, there would be a bang defined as !SetAlwaysOnTop to do all the always-on-top settings, as well as rename the .lnk files from...
=always on top
floating
hug desktop
...to...
always on top
=floating (presuming that's the one you selected)
hug desktop
then in the popuptheme, just have something like
*Popup "theme config" !DynamicFolder:"$ThemeDir$configpopups"
=-=-=-
So I figure there's probably a better way than that ;) Anyone care to enlighten me? :):)