Ravi/Shell-Shocked wrote:

>> Can someone (Ravi?) post a full example for multimonitors, 
>> even using ultramon, as I'm just beginning to use multimonitors...
>> TIA 
> 
> Some good dual monitor stuff can be found in Alan's WindowBarKits:
> http://groups.yahoo.com/group/power-pro/files/Bars_Configs_Snippets/0
_A
> lanMa rtin/ 
> (or http://tinyurl.com/bjnrk)
> 
> Someone recommended the following program to me for moving windows
> between monitors:
> http://www.snapfiles.com/get/wndhop.html
> 
> Of course PowerPro can do this using [1] below.
> 
> Ultramon has some useful command-line switches that make it useful for
> hotkeys/aliases etc. You don't even need to keep it running - just
> have it do what you need and exit. My favourite is the /t switch that
> enables/disables the second monitor - which is usually off until I
> feel I need it (environmentally friendly).
> 
> Some aliases I have are in [2]. If you only use UltraMon for the
> secondary taskbar, there is a free program that does only that (I'll
> track it down for you if you need it).
> 
> Re: example posted by Alex:
>>    *  start on monitor 1 / 2 / 3 / ...
> 
> Ultramon's UltraMonShortcuts.exe make this sort of thing easy, but of
> course PP could do just as well. A single script that takes two
> arguments (program, monitor) with some elements of [1] should be all
> that's needed. If you only have one other monitor, even better.
> 
> Those are all the dual mon ideas I have for now. If I think of
> anything else I'll be sure to let you know. Meanwhile I invite other
> dual mon users to post useful scripts/ideas.
> 
Hi Ravi, I'm back, with something to share

* I like ultramon for its taskbar, its ability to extend windows across 
multiple monitors, and its ability to proportionally resize windows when 
you're moving them to differently-sized monitors.


* I split your [1] script into 3 different scripts, one for the left, 
one for the right, and one for the top monitor, respectively. I assign 
each script to the corresponding Ctl+Alt+<X>arrow hotkey, <X> being 
left/right/up. Example:
[1]
Key = Alt+Ctrl+leftarrow
Cmd1 = [EMAIL PROTECTED]("active")


Here's the script... mind folded lines.

; @SwapWinWithRightMon, @SwapWinWithLeftMon, @SwapWinWithTopMon
; can be used to send window caption arg(1) to right/left/top monitor
; respectively or back to the main monitor.
;
; ASSUMED MONITOR LAYOUT:
;
;                          TOP(same size)
;                                |
;                                |
;     LEFT(same size)------MAIN(size AxB)------RIGHT(same size)
;
;
; send window to right monitor or back to main mon
@SwapWinWithRightMon
local c=arg(1) ;; caption
        If (Win.Left(c)>=(XScreen-4)) Do ;; it's on right mon
                If (Win.Maxxed(c)) Do
                        Win.Restore(c)
        
Win.Move(c,Win.Left(c)-XScreen,Win.Top(c)) ;; to left
                        Win.Maximize(c)
                Else
        
Win.Move(c,Win.Left(c)-XScreen,Win.Top(c)) ;; to left
                EndIf
        Else ;; it's on main mon
                If (Win.Maxxed(c)) Do
                        Win.Restore(c)
        
Win.Move(c,Win.Left(c)+XScreen,Win.Top(c)) ;; to right
                        Win.Maximize(c)
                Else
        
Win.Move(c,Win.Left(c)+XScreen,Win.Top(c)) ;; to right
                EndIf
        EndIf
        QUIT

; send window to left monitor or back to main mon
@SwapWinWithLeftMon
local c=arg(1) ;; caption
        If (Win.Right(c)<=4) Do ;; it's on left mon
                If (Win.Maxxed(c)) Do
                        Win.Restore(c)
        
Win.Move(c,Win.Left(c)+XScreen,Win.Top(c)) ;; to right
                        Win.Maximize(c)
                Else
        
Win.Move(c,Win.Left(c)+XScreen,Win.Top(c)) ;; to right
                EndIf
        Else ;; it's on main mon
                If (Win.Maxxed(c)) Do
                        Win.Restore(c)
        
Win.Move(c,Win.Left(c)-XScreen,Win.Top(c)) ;; to left
                        Win.Maximize(c)
                Else
        
Win.Move(c,Win.Left(c)-XScreen,Win.Top(c)) ;; to left
                EndIf
        EndIf
        QUIT

; send window to top monitor or back to main mon
@SwapWinWithTopMon
local c=arg(1) ;; caption
        If (Win.Bottom(c)<=4) Do ;; it's on top mon
                If (Win.Maxxed(c)) Do
                        Win.Restore(c)
        
Win.Move(c,Win.Left(c),Win.Top(c)+YScreen) ;; to main
                        Win.Maximize(c)
                Else
        
Win.Move(c,Win.Left(c),Win.Top(c)+YScreen) ;; to main
                EndIf
        Else ;; it's on main mon
                If (Win.Maxxed(c)) Do
                        Win.Restore(c)
        
Win.Move(c,Win.Left(c),Win.Top(c)-YScreen) ;; to top
                        Win.Maximize(c)
                Else
        
Win.Move(c,Win.Left(c),Win.Top(c)-YScreen) ;; to top
                EndIf
        EndIf
        QUI




------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12h935h1t/M=362335.6886445.7839731.1510227/D=groups/S=1706030409:TM/Y=YAHOO/EXP=1123006097/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOO&cmpgn=GRP&RTP=http://groups.yahoo.com/";>In
 low income neighborhoods, 84% do not own computers. At Network for Good, help 
bridge the Digital Divide!</a>.</font>
--------------------------------------------------------------------~-> 

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/
 



Reply via email to