Hotspot troubles Thread last updated on 2003-11-18 01:39:44

Posted by member 71746 on 2003-11-16 14:26:16

So here's a new one for ya's:

I've got some scripting set up to handle hotspots.. in the !BarShow bang, I've defined !HotspotOFF BarTabHS and in !BarHide I've defined !HotspotON BarTabHS

When the !BarShow is called, the hotspot is successfully disabled. When the !BarHide is called, the hotspot remains inactive. That's weird.

Here's where it gets weirder.

Using !.exe, I can call !HotspotON BarTabHS and nothing happens, but as soon as I call !HotspotOFF for *ANY* of the other hotspots that are defined, the BarTabHS becomes active!

This wouldn't be weird if any of the other hotspots had territorial disputes with the BarTabHS, but all the other hotspots are nowhere near the BarTabHS. Furthermore, in the !BarHide bang, all the other hotspots are disabled with !HotspotOFF commands before the !HotspotON BarTabHS is called as the last instruction in the script.

Ain't that just messed right up! :D

Posted by member 37809 on 2003-11-16 15:13:47 link

o_O
You've used that debug bang of ckHotspots, too?
Generally, I recommend using the "old style of detecting [the mouse]."

Posted by member 71746 on 2003-11-16 15:25:45 link

I'm currently using the old style, I can never manage to get the mousehook style or IHaveAlotOfResources style to work properly..

Posted by member 182 on 2003-11-16 18:49:33 link

it sounds like the problem is in your scripting.
double check all your ~ ' " | ! % ( ) { and }'s

damn typos :P

Posted by member 99 on 2003-11-16 20:22:07 link

I've had trouble with !HotspotON too, although I haven't had the time to track it down to see if it's a bug in the module or in my script. :/

Posted by member 1316 on 2003-11-17 14:16:18 link

I fought with !hotspoton/off for a while. I finally got it working (thanks to help from tnl, ceesland and lsstep143). download my theme (shades of grey) to check out the code. it may be helpful.

Posted by member 7223 on 2003-11-18 01:39:44 link

I can't use the ckhotspot-2.3 serie because !bangonenter is called in loop once you have entered the hotspot area.
Oh, I'm on Win2K