--- In [email protected], "evewebber" <[EMAIL PROTECTED]> wrote:
>
> There is a class of task switchers (WinPLOSION, Expire, TopDesk,
> Sinapse) which work by using a hot key (eg F9) to miniaturise all
> active (and overlapping) windows and spread them over the desktop so
> that one can be chosen by clicking on it. Does PowerPro have the
> capability to reduce a window and all its contents? Has anybody
tried
> this?
No Powerpro cannot reduce a window and display the resulting image.
Possibly the following script, which works with tiled windows, may be
close enough to what you want for task switching. (If you do not like
tiles, you can write your own resizing/repositioning)
Save the script in a file called tiler.txt. Assign a hot key the
command
.tiler
For testing purposes, assign a second hot key the command
[EMAIL PROTECTED]
Open some windows and hit the first hot key. If you do not get tiled
windows, try increasing the length of the wait.for.
When you do get tiled windows, click on one of the tiled windows. Hit
the second hot key. The windows should return to their previous size
and state and the clicked window should now be the foreground.
Once you are happy this is working, you get rid of the need to use the
second hot key by creating a command list called hookwindowevents and
assign it the single command (where the if is in the more commands
field)
global g_tiled
if (g_tiled)
[EMAIL PROTECTED]
Here is the script:
;-------------------------------------------------
local all=win.handlelist("*",0)
local nwin=word(all,0)
global g_tiled=0
global vwin
if (vec.exists(vwin))
vwin=vec.destroy(vwin)
vwin=vec.create(5*nwin)
local iv=0
for (i=0; i<nwin; i=i+1)
local hwnd=word(all,i+1)
if (not win.toolwindow(hwnd) && win.class(hwnd)!="#32770") do
vwin[iv]=hwnd
if (win.maxxed(hwnd)) do
win.show(hwnd)
vwin[iv+1]=0
vwin[iv+2]=0
vwin[iv+3]=0
vwin[iv+4]=-1
elseif (win.minned(hwnd))
win.show(hwnd)
vwin[iv+1]=0
vwin[iv+2]=0
vwin[iv+3]=-1
vwin[iv+4]=0
else
vwin[iv+1]=win.left(hwnd)
vwin[iv+2]=win.top(hwnd)
vwin[iv+3]=win.width(hwnd)
vwin[iv+4]=win.height(hwnd)
endif
iv=iv+5
endif
endfor
if (iv>0) do
exec tile t
wait.for(1000)
g_tiled=1
endif
quit
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@reset
global g_tiled=0
global vwin
if (not vec.exists(vwin))
quit
local active=win.handle("active")
for (local iv=0; iv<vec.length(vwin); iv=iv+5)
local hwnd=vwin[iv]
if (vwin[iv+3]>0 && vwin[iv+4]>0) do
win.move(hwnd, vwin[iv+1], vwin[iv+2])
win.size(hwnd, vwin[iv+3], vwin[iv+4])
elseif (vwin[iv+3]<=0)
win.minimize(hwnd)
else
win.maximize(hwnd)
endif
endfor
vwin=vec.destroy(vwin)
win.show(active)
quit
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
1.2 million kids a year are victims of human trafficking. Stop slavery.
http://us.click.yahoo.com/.QUssC/izNLAA/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/