Label.dll On Top problem Thread last updated on 2003-06-27 02:15:41

Posted by member 42057 on 2003-06-26 04:09:22

Hi, I just started using litestep and i love it. however, i'm having 1 problem. when i launch Counter-strike and then come back out, my labels/shortcuts are not on top anymore...thanks for your help...oh yeah, before i launch cs i hide them all and then afterwards show them...plz help thx

Posted by member 32550 on 2003-06-26 06:09:05 link

yes this is a normal problem, but you can do something, just "Hideall". this is a little work, but it works ;) *ggg*

here you are:
1. make sure you are loading the mzscript.dll
2. make a new file in your ThemeDir calles "script.rc"
3. write this line in the step.rc (theme step of course)
mzScriptFile $dirTheme$script.rc

4. copy this script into your script.rc...
*script bang !hideall
*script gotoif ("%{hidden}" = "on") 1
*script exec !varset version "1"
*script exec !varset hidden "on"
*script exec !jdesksetworkarea "8,-8,8,-8"
*script exec !systrayhide
*script exec !sidelabelhide
*script exec !quotelabelhide
*script exec !movelabelhide
*script exec !move1labelhide
*script exec !commandhide
*script exec !tasklabelhide
*script exec !vwmlabelhide
*script exec !chronoshide
*script exec !hideslidergroup 1
*script exec !hideslidergroup 2
*script exec !shortcutgrouphide 1 2 5 10 11 12 13 14 15 111 112
*script exit
*script label 1
*script exec !varset hidden "off"
*script exec !jDeskResetWorkArea
*script exec !systrayshow
*script exec !sidelabelshow
*script exec !quotelabelshow
*script exec !movelabelshow
*script exec !move1labelshow
*script exec !tasklabelshow
*script exec !chronosshow
*script exec !commandshow
*script exec !shortcutgroupshow 1 2 10 11 111
*script ~bang

and change it (you can see where hides and shows again all)
This is very simple, so you only have to take ALL labels, shortcuts, VWM, systray and hide or show that stuff (on showing again you have to be carefull whith the theme but you will see, don't be afraid, I mean nothing hard)
5. Hotkeys.dll should be loaded so write down this line (or an other Hotkey you prefer)
*Hotkey Win H !hideall


so you can hide all images if you want to play, and show them again when you are finished :)

Posted by member 18600 on 2003-06-26 09:25:12 link

It would be nice by the way to have a module that could test for different screen modes and such, then use timer.dll or whatever it was called to constantly check for it

Posted by member 7 on 2003-06-26 10:40:10 link

desktop2 has DesktopOnDisplayChange. jdesk has a similar option, though it can only !recycle.

Posted by member 42057 on 2003-06-26 13:06:50 link

yeah I have the !HideAll Script written and it works, but even while using it, the labels still appear below windows when i come back and use !showall

Posted by member 42057 on 2003-06-26 14:44:28 link

so how would i make a script that would be run on DesktopDisplayChange so that it would refresh my labels and make them stay on top?

Posted by member 32550 on 2003-06-26 18:46:23 link

uhm... why are you using !showall????? you don't need this, you only need the !hideall, if you use it again it comes back :) so you realy don't need to use a 2. script :) try it out ;)

Posted by member 42057 on 2003-06-26 18:59:26 link

hmm, well i didn't use the script you gave me, i used my own

Posted by member 37809 on 2003-06-26 19:09:18 link

Have you, instead of toggling the visibility, toggled the zOrder of your modules, provided they have those bangs?
Meaning you want them on top.. so force them back on top by untopping them and retopping them (*gasp* pardon my language). For modules that lack separate on-bottom and on-top bangs, such as systray2, call !SystrayOnTop twice.

If modules' zOrder bangs are nonexistent, try the module WndMan.dll for its on-top bang..

You might be able to do all of this in a single !execute string.

Then you can try hooking this up to DesktopOnDisplayChange or jDeskOnRezChange in an unreleased version of jDesk.

Posted by member 42057 on 2003-06-26 19:21:00 link

i'm not familar with zOrder, does that just modify a modules location behind/infront of windows?

Posted by member 37809 on 2003-06-26 19:42:39 link

When you have anything else which is on-top overlapping anything on-top, the last one which has ontop status should win and appear on top.

Yes, I assume that you have all you modules currently set to be on-top. This will make them appear above normal windows.
That is, you have step.rc settings such as the following:
AllLabelsAlwaysOnTop true
SystrayAlwaysOnTop true
VWMAlwaysOnTop true

Posted by member 42057 on 2003-06-26 19:50:42 link

i looked into it, i wasn't using LSBox, but I see that I can change the zOrder if I use it...now how would I go about puting th *Shortcut items into an LSBox?

Posted by member 42057 on 2003-06-26 19:57:06 link

yes my modules are set to be on top, just when i change my display settings, they loose this characteristic...so should i use LSBox or not, right now i have all the labels and stuff running with *Shortcut's in my step.rc.

Posted by member 42057 on 2003-06-26 20:03:50 link

basically i'm just looking for a way to refresh my labels/vwm on top status without a !recycle that way I can refresh them when my display settings change with DesktopOnDisplayChange

Posted by member 37809 on 2003-06-26 20:09:59 link

Lsbox has its own shortcuts. If you want you can box everything, but that causes complications too. You'll have to adjust coordinates relative to the lsbox.

Try doing this: run Counterstrike and exit.
Then as you say, your modules aren't on top anymore.
Are they invisible or still visible?

Assuming they are still visible, but not on top,
try executing !SystrayOnTop through lsxcommand.
this should make systray on bottom, granted it may already be on bottom. then execute !SystrayOnTop again.

If this makes systray regain its ontop status, then see my first post in this thread again.

Posted by member 42057 on 2003-06-26 20:19:04 link

yes doing !SystrayOnTop twice makes it pop up to the top again...i'm still confused modifying the zOrder with Label.dll

Posted by member 42057 on 2003-06-26 20:20:10 link

Also I need it done with bbvwm.dll which is what i use

Posted by member 37809 on 2003-06-26 20:34:39 link

see the bang commands section of label.txt

you'll want to use !LabelPinToDesktop and then !LabelAlwaysOnTop, doing this per label.

Posted by member 42057 on 2003-06-26 20:49:01 link

ok i think i got the labels working, but what can i do with bbvwm.dll to make it go to top again?

Posted by member 37809 on 2003-06-26 21:12:49 link

since bbvwm doesn't have those bangs, and maybe other modules.. you could use winspy to find the class of bbvwm, and then try the module WndMan to toggle the zOrder.

I don't know if all of this is an elegant solution but if it works then it'll work eh

Posted by member 42057 on 2003-06-26 22:06:23 link

hmm this WndMan doesn't work :(

Posted by member 42057 on 2003-06-26 22:54:18 link

any other suggestions?

Posted by member 42057 on 2003-06-27 02:15:41 link

Well I figured it out :D. What i did is hide the BBVWM main window, and instead put a label there and use a script (written mostly by tnl) to update with a bang :D...thank you so much tnl!