honwahp | 7 May 2012 17:59
Picon

show desktop

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/

brucexs | 8 May 2012 13:02
Picon
Favicon

Re: show desktop


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)
(Continue reading)

brucexs | 8 May 2012 17:43
Picon
Favicon

Re: show desktop

The following script will access the win 7 toggledesktop
local com_status, com_type
static objShell
// com.error_dialog_on()
if (not objShell)
 objShell = com.create_object("shell.application")
objShell.ToggleDesktop

Note that you cannot release the com object without losing its memory of whether or not the desktop is hidden.

(You could introduce a second static variable which itself was toggled [var = not var] and release the
object every second call as well as setting objShell to "", as long as you only used PowerPro do toggledesktop.)

This actually seems less useful the minshowall, since, in my tests at least, it gets confused if you launch
something from desktop while viewing it.  

If you wanted to simulate the windows ability of showing the desktop just by moving your mouse to a certain
place, a screen corner hot key would come close.

--- 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
> 
(Continue reading)

brucexs | 8 May 2012 18:38
Picon
Favicon

Re: show desktop

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
> 
(Continue reading)

brucexs | 8 May 2012 19:35
Picon
Favicon

Re: show desktop

Just for fun, here is the script which will reshow the desktop when the mouse is moved away from a screen
corner.  To use, store the following text in file 
toggledesktop.txt in script folder,
and create a screen corner hot key which executes .toggledesktop(). 

Works for main screen only on 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; make theEvent == ""
(Continue reading)

brucexs | 8 May 2012 19:42
Picon
Favicon

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:
(Continue reading)

diamantsus | 8 May 2012 19:43
Picon
Favicon

Re: show desktop

;*Keys {win}d
work in Seven?

--- 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.
>     objShell.ReleaseToggleDesktop
>     ObjShell = ""
> endif
> 
> 
> --- In power-pro@..., "brucexs" <brucexs <at> > wrote:
> >
> > 
> > There is 
> > desktop showminall
(Continue reading)

brucexs | 8 May 2012 19:50
Picon
Favicon

Re: show desktop

It does on my machine; however, like all the {xxx} involving modifier keys (ctrl, shift, etc) , you must use
twice since first use only simulates key down; you need second for key up.
keys {win}d{win}
is safer.

--- In power-pro@..., "diamantsus" <diamantsus <at> ...> wrote:
>
> ;*Keys {win}d
> work in Seven?
> 
> --- 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.
> >     objShell.ReleaseToggleDesktop
> >     ObjShell = ""
> > endif
(Continue reading)

honwahp | 9 May 2012 11:55
Picon

Re: show desktop

{win}d (or {win}d{win})is good enough for me. (I'm running XP) Scripts are too difficult :(

--- In power-pro@..., "brucexs" <brucexs <at> ...> wrote:
>
> It does on my machine; however, like all the {xxx} involving modifier keys (ctrl, shift, etc) , you must use
twice since first use only simulates key down; you need second for key up.
> keys {win}d{win}
> is safer.
> 
> --- In power-pro@..., "diamantsus" <diamantsus <at> > wrote:
> >
> > ;*Keys {win}d
> > work in Seven?
> > 
> > --- 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
(Continue reading)


Gmane