Posted by member 125450 on 2004-04-09 10:15:33
How do I get Litestep to reload a config file.
I'm setting up toggles for LSboxes and having remaining boxes move and strech to fill the viod. I can move and strech by using !lsBoxmove and !LSBoxResize, but cannot add the box back in and have the other boxes adjust accordingly. The X pos on the boxes are vars:
TaskWide $ResolutionX-670+trayx+mailx+ampx+vwmx$
TaskposX $420-ampx-mailx$
ampx is based on the value of ampOn true/false
Example:
I setup my script to textreplace a var
*Script bang !ampOn
If ampOn = true
*Script exec !textreplace @$ConfigDir$configure.rc@ @^(ampOn *)true@ @\1false@
*Script exec !LSBoxDestroy amp
Endif
If ampOn = false
*Script exec !textreplace @$ConfigDir$configure.rc@ @^(ampOn *)false@ @\1true@
!LsBoxCreate $ConfigDir$amp.box
Endif
*Script ~bang
Now with ampOn false my other boxes move to new positions
Then when !ampOn executes it still sees ampOn True and gives me an error from the box destroy saying can't find amp
If I use !recycle everthing works, but I don't want to recycle the theme
I've tried !refreshsettings, !reload, tried unloading LSbox and reloading and a dozen other half-backed Ideas
I've been browsing script files for the answer, just not clicking
I'm setting up toggles for LSboxes and having remaining boxes move and strech to fill the viod. I can move and strech by using !lsBoxmove and !LSBoxResize, but cannot add the box back in and have the other boxes adjust accordingly. The X pos on the boxes are vars:
TaskWide $ResolutionX-670+trayx+mailx+ampx+vwmx$
TaskposX $420-ampx-mailx$
ampx is based on the value of ampOn true/false
Example:
I setup my script to textreplace a var
*Script bang !ampOn
If ampOn = true
*Script exec !textreplace @$ConfigDir$configure.rc@ @^(ampOn *)true@ @\1false@
*Script exec !LSBoxDestroy amp
Endif
If ampOn = false
*Script exec !textreplace @$ConfigDir$configure.rc@ @^(ampOn *)false@ @\1true@
!LsBoxCreate $ConfigDir$amp.box
Endif
*Script ~bang
Now with ampOn false my other boxes move to new positions
Then when !ampOn executes it still sees ampOn True and gives me an error from the box destroy saying can't find amp
If I use !recycle everthing works, but I don't want to recycle the theme
I've tried !refreshsettings, !reload, tried unloading LSbox and reloading and a dozen other half-backed Ideas
I've been browsing script files for the answer, just not clicking