question about hotspots Thread last updated on 2003-12-09 04:30:05

Posted by member 81717 on 2003-12-08 04:33:37

I't trying to learn how to create my own theme here, but I have encountered a problem which I cannot understand.

I have a small panel of icons (shortcuts) which I want to be able to hide and show.

*shortcut "" 50 500 "cuts.bmp" .none .none #1H
*shortcut "Quake 3" 80 580 "q3_normal.bmp" "q3_hover.bmp" "q3_normal.bmp" #1H "d:\misc\shortcuts\games\q3"

To do that I have another button:

*shortcut "hide/show" 30 390 "lala.bmp" "lala.bmp" "lala.bmp" # !ShortcutGroupToggle 1

And that is working very well.

What I really want, however, is a hotspot in the corner of the screen that toggles the panel (shortcutgroup 1). I simply wrote:

*ckHotSpot -1 0 1 1 !ShortcutGroupToggle 1 !None

---But this does not work!---

To test the hotspot, I tried:

*ckHotSpot -1 0 1 1 !TaskbarToggle !None

And that worke very well. So now I could toggle the taskbar by just moving the mouse to the corner of the screen, but when I changed "!TaskbarToggle" to "!ShortcutGroupToggle 1" nothing happens. And as I tested before, "!ShortcutGroupToggle 1" itself is working, since I can use it in the "hide/show"-button.

I can't understand why this won't work, so if anyone could help I would appriciate it.

(i hop you can understand my explanation, that I didn't make it too messy)

Posted by member 99 on 2003-12-08 10:19:14 link

Try
*ckHotSpot -1 0 1 1 [!ShortcutGroupToggle 1] [!None]

Posted by member 81717 on 2003-12-08 10:52:10 link

I tried it before, and once again now after your reply, and it doesn't work. I still have no idea why.

Do you want me to list all the modules I'm using?

Posted by member 99 on 2003-12-09 00:57:13 link

Ok, lemme actually check the code a second here...

That sucks, try with quotes:
*ckHotSpot -1 0 1 1 "!ShortcutGroupToggle 1" "!None"


It doesn't use GetToken so that it could support [], but it should. :P (I hope you haven't already tried with quotes, because I don't know what else could be wrong.)

Posted by member 81717 on 2003-12-09 04:30:05 link

Omg. First I tried to replace
*shortcut "hide/show" 30 390 "lala.bmp" "lala.bmp" "lala.bmp" # !ShortcutGroupToggle 1
with
*shortcut "hide/show" 30 390 "lala.bmp" "lala.bmp" "lala.bmp" # "!ShortcutGroupToggle 1"

and that that made the button stop working. Which made me think it was an bad idea all over. But then I tried
*ckHotSpot -1 0 1 1 "!ShortcutGroupToggle 1" "!None"
as you said, and it worked!

I am still a bit confused, and yet amazed. :) Thanks for the help anyway, man.