shortcuts used inside lsbox and general box uncertianty Thread last updated on 2004-03-08 07:59:23

Posted by member 3529 on 2004-03-05 20:15:06

OK, I am trying out LSBox 3 pre and I must say it is an ambitious attempt on my part. I am wanting to have shortcuts inside my box and I keep getting errors.
Here is a shortcut from my theme.rc that creates the box:
*Shortcut "Menu" 50 50 button1.png .none button2-1.png #6T !lsboxcreate $ConfigDir$menu.box

And here is my box file:

LsBoxName menu
LsBoxX 50
LsBoxY 58
LsBoxBackGround lsbox.bmp
LsBoxHeight 262
LsBoxWidth 205
LsBoxBackgroundOffs
LsBoxZOrder STAYONTOP
LsBoxNotSticky
LsboxAutoHide

*Shortcut "Browser" 50 50 button1.png .none
button2-1.png #7T "$browser$"

Now I am just starting our so this is very simple so far. The problem I get is that this will not launch my browser. I will recycle after a change and get an error that lsbox has an exception quiting and then shortcut2 wouldn't initialize and litestep generates an error and must be closed. Is this something faily obvious? Any help appreciated! I would be willing to email the theme to someone who would help.

Posted by member 1 on 2004-03-05 20:49:16 link

The *Shortcut line is not part of Shortcut2...its part of LSBox.

Posted by member 3529 on 2004-03-07 21:35:02 link

I am not sure how you mean. The first shortcut line is in the theme.rc and the second is in the .box file. Is that not correct?

Posted by member 35 on 2004-03-07 22:23:30 link

he means that you shouldnt load shortcut2, it's in lsbox already.

Posted by member 3529 on 2004-03-08 07:10:02 link

Wait a min...are you saying I shout remove the *Netloadmodule shortcut2 line completely? It doesn't say that anywhere in the readme.

Posted by member 3529 on 2004-03-08 07:11:28 link

Well that can't be it, I just tried it and none of my shortcuts appear. Sorry guys, I just don't understand what you are saying.

Posted by member 37809 on 2004-03-08 07:52:14 link

the syntax for lsbox3pre shortcuts has changed from plain <left click> to [<left click>][<right click>]

try
*Shortcut "Browser" 50 50 button1.png .none
button2-1.png #7T ["$browser$"][]


note that using !execute [] in these brackets does not work.

Posted by member 3529 on 2004-03-08 07:59:23 link

That did it! Thanks so much! Thank you Thank you Thank you!