lsbox and mzscript Thread last updated on 2003-02-25 08:29:58

Posted by member 3800 on 2003-02-24 10:58:22

K just trying some stuff out, not even sure I'm doing it right hehe. Here's what I'm trying to accomplish:
I have a shortcut in the top corner and when I press the "button" it will hide/show a box.
k here's what I have so far:
step.rc:
*LsBoxCreate test.box
...
*shortcut "" 0 0 showbox.bmp .none .none !execute [!change_box_state]
...
mzScriptFile "$themedir$script.rc"
-----------------------------------
script.rc:
*Script bang !change_box_state
*Script exec !LsBoxToggle test.box
*script ~bang
-----------------------------------
also tried an !execute after the exec in the second line.
So here's the problem, when I press the button in the top corner, LsBox bawks at me and says 'Box "TEST.BOX" not Found!'
any insight? Not very familiar with doing things in mzscript yet so...
Thanks!
-Tesh

Posted by member 3800 on 2003-02-24 11:00:12 link

oh forgot to mention I also have setup a .box file that has a name, position, and dimensions but noting else yet, and it does appear on the desktop.

Posted by member 3800 on 2003-02-24 11:30:54 link

Of course I could just try and look cool by doing things the insanely hard way LOL
Just realized I can just use !lsBoxToggle right in the shortcut
However I am still getting the error that the box is not found =/
I also tried to hide the box with !lsBoxHide...same error.

Posted by member 60 on 2003-02-24 11:31:37 link

use the value for LsBoxName from your test.box
ie if it was 'LsBoxName mytestbox'
*Script bang !change_box_state
*Script exec !LsBoxToggle mytestbox
*script ~bang

Posted by member 7223 on 2003-02-25 01:01:32 link

...and you must specify LSBoxBackground "mytestboximage.png" in your box file; unless you want invisible boxes...

Posted by member 562 on 2003-02-25 08:29:58 link

as cpm stated, dont use the filename of the box, but the LsBoxName as specified in test.box.