Opening custom when loading a theme Thread last updated on 2004-01-10 23:21:08

Posted by member 97674 on 2004-01-08 21:49:26

does anyone know how to get custom evars to run when a theme is loaded? and maybe a way to close them when a new theme is loaded?

Posted by member 36955 on 2004-01-08 22:30:59 link

well... evars arent run, and i dont know what you mean by close them when a new theme is loaded... explain what you are thinking "evar" means

Posted by member 1 on 2004-01-08 23:09:48 link

evars are only stored in memory until the next recycle. they will be unloaded/closed when the settings in memory are dumped and reloaded.

Posted by member 97674 on 2004-01-09 00:09:03 link

i want to run an application

*Script !exec ["$programspath$ClocX\ClocX.exe"]

it said in mzscript that i could use that but it doesnt work

Posted by member 35 on 2004-01-09 00:11:55 link

didnt he refet to applications as evars in anotherthread?

Posted by member 37809 on 2004-01-09 01:08:37 link

you mean
*Script start "$ProgramsPath$ClocX\ClocX.exe"

but it's better to use one.dll along with this (so as to not run ClocX again if it's already running, for example)

Posted by member 97674 on 2004-01-09 03:24:12 link

hmm, that didnt seem to work :( all i have to put is
*Script start "$ProgramsPath$ClocX\ClocX.exe"
???

Posted by member 97674 on 2004-01-09 04:14:24 link

OK this is really odd, i tried that command in antoher theme that uses a step.rc

but when i changed my theme.rc to step rc it didnt work :(

ahhh someone help :(

Posted by member 333 on 2004-01-09 10:23:29 link

not to be rude or anything, but you've started a bunch of threads now, and they all smell of you not having read enough documentation. If you don't know what an evar is (Environment VARiable) or how to take advantage of it, you need to read through the LS-docs, faq's and this forum.

I mean no offence, but knowing this community, it isn't the best of ideas to start off your LS-experience by asking a bunch of questions without trying to figure out stuff yourself first. It is also common forum-etiquette to see whether there are threads that might help you without starting a new thread ;) Good luck.

Posted by member 1949 on 2004-01-09 10:41:53 link

Simple enough...
Just add the evar in your theme.rc like this
Calc "C:\WINDOWS\system32\calc.exe"
and then open the evar with
!exec "$calc$"
When you change themes you will have another theme.rc loaded
up and will lose calc evar from the new theme...
Now if you want the Evar to be global across all themes
place the evar in your C:\LiteStep\personal\evar.rc
But only you will have this global evar on your pc and not others if you decide to release the theme.
Hope this is what you wanted to know.

Why are you switching to step.rc to theme.rc anyway?
Stay with a theme.rc and ots2...
Its backwards compatible for ots1 and ots2, at least right now.

Posted by member 97674 on 2004-01-09 19:28:32 link

thanx! :) i'll try that when i get home, im at my fathers bday party right now :P um... yeah and sorry about the threads, i almost have a completely funtional mac os theme for litestep :)

Posted by member 97674 on 2004-01-09 20:20:44 link

hmm... that didnt work either :(
it only works with step.rc and i dont know how to switch to step.rc ":(

Posted by member 97674 on 2004-01-09 22:31:34 link

ok i got the programs to open but how do i use one.dll? :S

Posted by member 7223 on 2004-01-10 19:38:13 link

You have to add
mzScriptUseStep

if you want to place mzcript's stuff in *.rc :)

And... hmm... read the docs :)

Posted by member 7 on 2004-01-10 23:21:08 link

or use systemevents.dll (/plug)