werewolf werewolf

LS programming help please :)

LS programming help please :)

Hi, thanks for looking.

I am trying to do something which seems to be very simple: Click the Middle mouse button and display a list of desktops from the vwm.

There is a theme, fo-src, which does this. I have looked at every .rc file I could find and I have tried the following in my theme:

I have jdesk.rc which contains the following:
jdeskworkarea "0,25,1280,974" !haven't figured out how the negative number thing works yet
*jDeskMButton3 [CTRL!none!ToggleCommand!none] << THIS WORKS
*jDeskMButton3 [!none!none!popupvwm!none]

I have popupvwm.rc which contains the following copied from the fo-src theme:
If VWM TRUE
*Popup "" !New !Popupvwm
*Popup "Desktop 1" !VWMDesk 1
*Popup "Desktop 2" !VWMDesk 2
*Popup "Desktop 3" !VWMDesk 3
*Popup "Desktop 4" !VWMDesk 4
*Popup ~New
ENDIF

I have these two entries in my theme.rc file:
include "$configDir$jdesk.rc"
include "$configDir$popupvwm.rc"

I really don't know what else to do to get this to work. I've looked through the docs for the vwm module and the jdesk module, but I can't find any docs which state "if you want to do something like this, you have to have this/these .rc file(s) and you have to make entries in these .rc files and you have to set up these themevars...."

jdesk-0.711
popup2-2.1.4
ckvwm-1.40

Thanks so much. This isn't as easy as AstonShell

David




Powered by SkinBrowser!
14,771 views 67 replies
Reply #51 Top
Thanks once again Jafo I did go through a lot of that before I installed. I guess I have to read the whole thing.



Powered by SkinBrowser!
Reply #52 Top
Why would you need to use condiional logic? I don't think I have that anywhere in my setup. The only logic I'm using has been transfered to a mzscript module.

Also, LSMail has no commands you can attach to clicks. Left is check mail, right is a context menu, according to the readme I found on my drive, there is no middle click.

Or are you trying to say you want to be able to middle click on LSMail and then bring up MailWasher? I'm afraid LiteStep isn't that advanced. Modules in general are ignorant of each others existence.
Reply #53 Top
You must have lsmail-4.2

Here's a snippet from lsmail-4.4 (as you can see, it defines middlebutton actions)
Mouse Click Actions:

LSMailOnLeftDBL !None
LSMailOnLeftDown !None
LSMailOnLeftUp !LSMailCheckMail

LSMailOnRightDBL !None
LSMailOnRightDown !LSMailMenu
LSMailOnRightUp !None

LSMailOnMiddleDBL !None
LSMailOnMiddleDown !None
LSMailOnMiddleUp !None

When there is no mail ($LsMailNumMessages$=0), I don't want to see $LsMailNumMessages$. When there is mail ($LsMailNumMessages$>0) I want to see how many I have.

I played around with the settings and the only action which would actually allow a user setting is lsmailonleft... the right and middle functions can't be changed.

I can see the $LsMailNumMessages$ variable by !popup $LsMailNumMessages$ using lsxcommand, so I know it is available. I've set it as a number and as text, but nothing works.


Powered by SkinBrowser!
[Message Edited]
Reply #54 Top
werewolf .. use the "individual drives" mode in icon packager to change the drives icons ...im running litestep and my drives icons are the ones i specify in icon packager .....




[Message Edited]
Reply #55 Top
Thanks HG, I'll give that a shot.



Powered by SkinBrowser!
Reply #56 Top
Hmmm, that didn't seem to do anything at all.



Powered by SkinBrowser!
Reply #57 Top
try switching back to explorer .. then set the individual icons .. then switch back to litestep..
im not sure how or why .. but it worked for me ..
Reply #58 Top
well, this is actually bizarre. I can't change the drive icons at all (I'm back to explorer). The hdd and floppy drive icons are stuck on Treetogs Thunderstorm drive icons. I tried changing to windows default, a totally different package, thunderstorm and then something else, rebuild icon cache, repair icons, went into explorer.exe>right click on drive icon and change manually, individual drive icons mode in IP, rebooted, pretty much everything.

I've looked as shell32.dll and the icon for a hard drive does exist there, but when I choose it, hit apply, the drive icon in explorer.exe changes to the correct xp icon, but then 1/4 of a second later, it changes back to the thunderstorm icon.

I can change it to a different shell32.dll icon and it will stick, but as soon as I change it to the default hdd drive icon it gets stuck on the thunderstorm icon. Ooohh, let me take the thunderstorm icon set away....



So, since the thunderstorm icons doesn't exist anymore, where is it coming from? Where is it caching?

Would anyone know where the registry settings are for the drive icons?



Powered by SkinBrowser!
Reply #60 Top
It's showing the correct icon anyway. So, where do you think that this Thunderstorm icon is coming from? I took that theme off my drive. Zounds, a mystery...The game's afoot.



Powered by SkinBrowser!
Reply #61 Top
you defrag and reboot ?.. it couldnt hurt ..

Reply #62 Top
It's got to be caching it somewhere. That's the only way it can happen, me thinks.

On XP, they're cached in this file: C:\Documents and Settings\[username]\Local Settings\Application Data\Iconcache.db. I'd say, delete it, reboot and see what happens.
Reply #63 Top
deleted. I was able to change the drive icons to an icon different from the default and they stuck. It's as if there's some conditional going on somewhere: if default then thunderstorm icon, else whatever. Thhhhpt.

Appreciate the help



Powered by SkinBrowser!
Reply #64 Top
lol, I switched to astonshell and changed all the icons to windows default, switched back to explorer and manually set all the icons back to windows default and it worked. So it was Astonshell all this time. Hmmmm.



Powered by SkinBrowser!
Reply #65 Top
What affects the speed of how fast a theme unloads? When I recycle my theme, it takes quite a long time compared to some of the other themes. Mine is nothing really complicated at all, but something has got the unloading process in a twist.



Powered by SkinBrowser!
Reply #66 Top

If it's a really long time it can be  a missing image referenced somewhere...or other coding anomaly.

I have often wondered whether there's a lag due to the 'netloadmodule'....as the poor proggy has to hunt through so many different module vers when each subsequent theme has you downloading yet more of them....

Reply #67 Top
On unload? I would have thought that netloadmodule wouldn't have anything to do on unload.
I'll check for the coding or missing refs.

Thanks Jafo.



Powered by SkinBrowser!