Hi all,
I love WinBarDual5. There are two things I was hoping to do with it
which I am not sure I'm doing correctly or in the best possible manner.
First, I would like to be able to assign a hot key or mouse click to
directly switch a window to the other monitor (yes, I know I can do
this in just two clicks with WinBar, but...). Here is what I came up
with, assigned to right click on maximize button
.WinBarDual5(win.handle("under"))
[EMAIL PROTECTED](0,1)
Bar Hide WinBarDual5_bar
This seems to work passably well. I just wonder if there is anything
dangerous about it, or whether it can be done more directly.
Second, I wanted a script that would open the application window on
the monitor where the mouse is (I have nearly identical bars showing
on each screen). Here is what I cam up with, assigned to my autorun
list with * as the caption list:
local pMouse = xmouse
local dMons = win.getsystemmetrics("SM_CMONITORS")
local dWidth = win.getsystemmetrics("SM_CXVIRTUALSCREEN")/2
local wPos = win.left(lastautorunhandle)
wait.for(5000,activewindow(lastautorunhandle))
If((dMons == 2) and ((pMouse < dWidth) and (wPos >= dWidth))) do
.WinBarDual5(win.handle("autorun"))
[EMAIL PROTECTED](0,1)
Bar Hide WinBarDual5_bar
quit
EndIf
If((dMons == 2) and ((pMouse > dWidth) and (wPos < dWidth))) do
.WinBarDual5(win.handle("autorun"))
[EMAIL PROTECTED](0,1)
Bar Hide WinBarDual5_bar
quit
EndIf
quit
This works fine as far as I can tell, but (and here is the real issue)
ONLY IF I change the end of the @RefreshBar section in
WinBarDual5.powerpro from "quit all" to "quit" (line 182). I seem to
be able to
use WinBar as usual even after this change, and the autorun script
seems to work for all but one app.
Am I doing anything horribly wrong? Is there a better way?
Thanks for all and any input,
Paul
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/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/