--- In [email protected], "brucexs" <[EMAIL PROTECTED]> wrote: > > . I want > > the > > > > > bar to visible at all times except when I hover the bar. I > know > > I can > > > > > assign each button auto-left-click on hovering and *Bar Hide > as > > > > > command. My problem is how to make the bar reappear when I > move the > > > > > mouse away from the bar. I don't want to use hotkeys, bump > edge or > > > > > anything - it should be automatic and the bar shouldn't re- > appear > > > > > until I move the mouse away from the bar. > > > > > > >> > > > > > > You may execute the following script periodically > > > > > local left=win.left("bar_name") > > > local right=win.right("bar_name") > > > local top=win.top("bar_name") > > > local bottom=win.bottom("bar_name") > > > > > > if(xmouse > left && xmouse <right && ymouse >top && ymouse > <bottom)do > > > > > > You can combine the *Bar Hide with hover idea with the above script > to avoid having a script that runs continually, if you want. > > Use the idea of having a hover command run a Bar hide for each > button. Moreover, in the more commands of each button, create an > event which runs something like part of the above script to check > the mouse position. Store event handle in global. If the mouse > position is outside the bar boundaries, show the bar and destroy > the event using the global. >
Thanks swzoh - that was fast. I have implemented your second suggestion and it works great. However, I like the idea of not having a script running continuously even if the script does very little when I'm not hovering the buttonbar. Therefore I might try Bruce' suggestion. If only I understood the suggestion. I'm not familiar with events, so could you Bruce or someoneelse please elaborate a bit. Greetings from Denmark. Niels ------------------------ Yahoo! Groups Sponsor --------------------~--> Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/JV_rlB/TM --------------------------------------------------------------------~-> Attention: PowerPro's Web site has moved: http://www.ppro.org Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/power-pro/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
