--- In [email protected], "swzoh" <[EMAIL PROTECTED]> wrote: > > --- In [email protected], "swzoh" <[EMAIL PROTECTED]> wrote: > > > > --- In [email protected], "ncb41727" <[EMAIL PROTECTED]> wrote: > > > > > > Hi > > > > > > Can anyone of you experts tell me how can I make a regular buttonbar > > > auto-hide and - in particular - auto-reappear. > > > I have a 3-button bar with only info-text on the buttons. 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. > > > Any suggestions? Maybe I should use another command instead of Bar > > > Hide? > > > > You may execute the following script periodically using Monitor > > command list or Event plugin: > > > > 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(win.caption("rawactive")=="bar_name")do > > bar.hide("bar_name") > > elseif(not visiblewindow "bar_name") > > if(not(xmouse > left && xmouse <right && ymouse >top && ymouse <bottom)) > > bar.show("bar_name") > > endif > > quit > > Or > > 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 > if(visiblewindow "bar_name") > bar.hide("bar_name") > else > if(not visiblewindow "bar_name") > bar.show("bar_name") > endif > quit
I realized I had assumed X-Mouse feature on implicitly in the first case, as I always do. If it's off, the first example probably won't work as expected... Sean ------------------------ 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/
