Search the web
Sign In
New User? Sign Up
power-pro · Free discussion list for PowerPro users
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Show/Hide a windows   Message List  
Reply | Forward Message #34393 of 36674 |
Hi,

I was trying to do something that I thought would be very easy :( I
wanted to write a script that would allow me to pass an argument to it
and would then show or hide the window, even if it was in the tray.

I started off with the following:

If (visiblewindow ("=Notepad")) do
win.debug("Notepad is active visible window")
ElseIf (anywindow ("*Notepad*")) do
win.debug("Notepad is minimised")
Win.Show "*Notepad*"
Else
win.debug("Starting Notepad")
C:\Windows\Notepad.exe
Wait "*Notepad*"
EndIf

The visiblewindow does not seem to work as it still does a win.debug
when Notepad is minimised.

If I can get this working, I then thought I would like to pass an
argument to a script so that I could setup command lists with
.scriptname(program) like:

hh=win.caption(arg(1))
win.debug(hh)

Foxy






Tue Jan 13, 2009 5:41 pm

foxy_foobar
Offline Offline
Send Email Send Email

Forward
Message #34393 of 36674 |
Expand Messages Author Sort by Date

Hi, I was trying to do something that I thought would be very easy :( I wanted to write a script that would allow me to pass an argument to it and would then...
foxy_foobar
Offline Send Email
Jan 13, 2009
6:04 pm

Even if the windows is visible you can call win.show(). I use the folowing script to ShowOrRun a program. args request, pgm local hWnd= Win.Handle(request) if...
nospam0123456us
Offline Send Email
Jan 13, 2009
7:41 pm

- ... Just to build on that point: the window visibility is different from whether the window is min/normal/max. It can be in any combination of ...
brucexs
Offline Send Email
Jan 13, 2009
11:44 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help