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



Reply via email to