8 May 2012 19:42
Re: show desktop
Just for fun, this script will use an event to reshow desktop if the script executes from a screen corner hot
key. Store file in script folder in file called toggledesktop. Have the hot key execute
.toggledesktop()
Works from main screen only in multi-monitor system.
// nameless function at start called by .toggledesktop()
local com_status, com_type
static objShell
static theEvent
if (not objShell) do
objShell = com.create_object("shell.application")
objShell.ToggleDesktop
theEvent = event.createms(100,0, ".toggledesktop <at> reshow()")
else
.toggledesktop <at> reshow()
endif
Function Reshow()
if (xmouse<5 or xmouse>xscreen-5 or ymouse<5 or ymouse>yscreen-5)
quit
if (objShell) do
objShell.ToggleDesktop()
objShell.Release()
ObjShell = ""
endif
if (event.exists(theEvent))
theEvent = theEvent.destroy() //kill event; settheEvent == ""
--- In power-pro@..., "brucexs" <brucexs <at> ...> wrote:
>
> This script will use the toggledesktop feature of win7. But I find minshowWndows more effective for what I
do, since, in my tests, toggledesktop gets confused if I launch from the desktop while windows are hidden.
>
> By the way, the screen corner hotkeys are your best bet if you want something that behaves close to the hot
corner in windows. You could even start an event which untoggles the desktop (by running the script again)
when the event fires and the mouse is far from any corner. (If you don't do this, you have to move the mouse
away from the corner then back to reshow desktop).
>
> local com_status, com_type
> static objShell
> if (not objShell) do
> objShell = com.create_object("shell.application")
> objShell.ToggleDesktop
> else
> objShell.ToggleDesktop
> objShell.Release
> ObjShell = ""
> endif
>
>
> --- In power-pro@..., "brucexs" <brucexs <at> > wrote:
> >
> >
> > There is
> > desktop showminall
> > which minimizes the currenlty visible windows, and then shows them again the next time you execute the
command (which should be soon after).
> >
> > If you mean the win 7 show desktop button, PowerPro cannot directly access it. It may be possible using the
com plugin and the toggledesktop method supplied bythe IShellDispatch4
> >
> > http://msdn.microsoft.com/en-us/library/windows/desktop/bb774124(v=vs.85).aspx
> >
> >
> > --- In power-pro@..., "honwahp" <honwahp <at> > wrote:
> > >
> > > Hi, is it possible to "show desktop" when clicking a button? I cannot find it. Help is appreciated.
> > >
> >
>
------------------------------------
PowerPro's download site: http://powerpro.webeddie.com/Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/power-pro/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/power-pro/join
(Yahoo! ID required)
<*> To change settings via email:
power-pro-digest@...
power-pro-fullfeatured@...
<*> To unsubscribe from this group, send an email to:
power-pro-unsubscribe@...
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
RSS Feed