modal and docked

Apr 11, 2009 at 9:33 PM
Hi,

Thank you for this snapin / .dll.  Below are two functions I use to toggle between a large powershell window and a small one.  Maybe others will find them helpful.

I am eagerly awaiting the arrival of cmdlets to dock the powershell window to other applications.  Or maybe those cmdlets are already available?

function set-windowposition-1
{
    $a = select-window -activewindow
    set-windowposition -left 925 -top 850 -width 1000 -Height 188 -window $a
}
function set-windowposition-2
{
    $a = select-window -activewindow
    set-windowposition -left 925 -top 100 -width 1000 -Height 938 -window $a
}
set-alias swp set-windowposition-1
set-alias bwp set-windowposition-2

Thanks again!
Mike