LS programming help please :)
Sunday, October 3, 2004 by werewolf | Discussion: WinCustomize Talk
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
Reply #42 Monday, October 4, 2004 9:52 PM
Thanks for that. I did discover those rc's in the personal folder. I also figured out how to not load those. But you gave me what I was looking for: I can make a theme with just one theme.rc. However, I agree that making an RC for each module makes a certain sense.
Man, Aston themes are so easy to make

Well, onward and upward.
Are there any documents which explain what things like 'Execute' and 'Shortcut' and a few others mean?
Also where can I find out what *all* the themevars can be?
[Message Edited]
Reply #43 Monday, October 4, 2004 10:17 PM
Reply #44 Monday, October 4, 2004 10:36 PM
[Message Edited]
Reply #45 Wednesday, October 6, 2004 11:16 PM
What's wrong with this?
IF $LsMailNumMessages$ = 0
lsmailnotext
ELSE
lsmailfont tahoma
lsmailfontsize 24
lsmailfontbold
lsmailnewmailfontcolor FF0000
ENDIF
Thanks,
David

Reply #46 Wednesday, October 6, 2004 11:40 PM
Not certain, but try....
IF LsMailNumMessages = 0
lsmailnotext
ELSE
lsmailfont tahoma
lsmailfontsize 24
lsmailfontbold
lsmailnewmailfontcolor FF0000
ENDIF
Reply #47 Thursday, October 7, 2004 2:43 AM
Reply #48 Thursday, October 7, 2004 8:02 PM
Reply #49 Friday, October 8, 2004 10:30 AM
Apparently you can use if-then-else statements, but only to evaluate evars. You can't compare their values to 0 or anything else (the = sign means nothing in theme.rc)
You can't use evars globally with every module.
I don't get how to launch external programs using buton commands.
I don't know where to go to get the documentation to explain all this. I've googled, looked at 5 or 6 litestep sites, nothing.
phhhht.

Reply #50 Friday, October 8, 2004 10:36 AM
Start with that....it's the 'FM' that LS Users MUST 'RT'....
Reply #51 Friday, October 8, 2004 10:40 AM
Reply #52 Friday, October 8, 2004 11:45 AM
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 Friday, October 8, 2004 12:56 PM
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.
[Message Edited]
Reply #54 Saturday, October 9, 2004 11:49 AM

[Message Edited]
Reply #57 Saturday, October 9, 2004 4:44 PM
im not sure how or why .. but it worked for me ..
Reply #58 Saturday, October 9, 2004 5:49 PM
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?

Reply #59 Saturday, October 9, 2004 6:47 PM
Reply #60 Saturday, October 9, 2004 7:39 PM
Please login to comment and/or vote for this skin.
Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:
- Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
- Access to a great community, with a massive database of many, many areas of interest.
- Access to contests & subscription offers like exclusive emails.
- It's simple, and FREE!







Reply #41 Monday, October 4, 2004 9:41 PM
Now, figure out how to put an animation into a theme
hmmm, now which theme can I tear apart for that lesson ummm anta..
Thanks for your help Jafo!