LS programming help please :)

Sunday, October 3, 2004 by werewolf | Discussion: WinCustomize Talk

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!
First Previous Page 3 of 4 Next Last
werewolf
Reply #41 Monday, October 4, 2004 9:41 PM
Hah!! Everything is working.

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!



Powered by SkinBrowser!
werewolf
Reply #42 Monday, October 4, 2004 9:52 PM
Hi PharOe,

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?


Powered by SkinBrowser!
[Message Edited]
werewolf
Reply #43 Monday, October 4, 2004 10:17 PM
Also (I'm so sorry, but I really want to be able to do all this stuff

How do I get iconpackager to work with LS? I watched as a drive icon changed to the correct icon and then switch right back to windows default (I think) Is there a way?



Powered by SkinBrowser!
BoXXi
Reply #44 Monday, October 4, 2004 10:36 PM
MY GOD!! Now I remember why I don't theme Litestep anymore.....hehe. I used to quite enjoy fiddling around with the oldstyle step.rc, but when they added all those other .rc files, and all that OTS stuff, it just fried my brain. BoXXi goes back to importing objects into DX........so simple.
[Message Edited]
werewolf
Reply #45 Wednesday, October 6, 2004 11:16 PM
I would like to have no text if there are no messages and the number of messages if there are any. I did this, but I get an error on the first line. This is in the theme.rc

What's wrong with this?

IF $LsMailNumMessages$ = 0
lsmailnotext
ELSE
lsmailfont tahoma
lsmailfontsize 24
lsmailfontbold
lsmailnewmailfontcolor FF0000
ENDIF

Thanks,

David



Powered by SkinBrowser!
Jafo
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

craeonics
Reply #47 Thursday, October 7, 2004 2:43 AM
Better forget about getting any app that alters drive and folder icons to work when not using Explorer as your shell. Explorer (the file manager) will completely ignore what you set as drive/folder icons.
werewolf
Reply #48 Thursday, October 7, 2004 8:02 PM
Jafo, thanks, but that didn't work. I've tried all the combinations I can think of...nothing.

Crae, yeah, I suppose you're right. Too bad though.



Powered by SkinBrowser!
werewolf
Reply #49 Friday, October 8, 2004 10:30 AM
This is really getting frustrating. Using lsmail, I've tried to set up the middlebuttonup to launch mailwasher, but nothing happens. There is something very fundemental about LS which I'm missing.

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.



Powered by SkinBrowser!
Jafo
Reply #50 Friday, October 8, 2004 10:36 AM

http://lsdocs.shellfront.org/

Start with that....it's the 'FM' that LS Users MUST 'RT'....

werewolf
Reply #51 Friday, October 8, 2004 10:40 AM
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!
craeonics
Reply #52 Friday, October 8, 2004 11:45 AM
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.
werewolf
Reply #53 Friday, October 8, 2004 12:56 PM
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]
HG_Eliminator
Reply #54 Saturday, October 9, 2004 11:49 AM
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]
werewolf
Reply #55 Saturday, October 9, 2004 3:35 PM
Thanks HG, I'll give that a shot.



Powered by SkinBrowser!
werewolf
Reply #56 Saturday, October 9, 2004 3:43 PM
Hmmm, that didn't seem to do anything at all.



Powered by SkinBrowser!
HG_Eliminator
Reply #57 Saturday, October 9, 2004 4:44 PM
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 ..
werewolf
Reply #58 Saturday, October 9, 2004 5:49 PM
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!
craeonics
Reply #59 Saturday, October 9, 2004 6:47 PM
HKEY_CLASSES_ROOT/Drive/DefaultIcon, but changing that has never helped on my system.
werewolf
Reply #60 Saturday, October 9, 2004 7:39 PM
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!

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!



web-wc01