Script Control

  • Thread starter Thread starter JohnNews
  • Start date Start date
J

JohnNews

Folks:


I have a script that can launch Windows Media Player (WMP) files
sequentially - one after the other. This is the script:

FOR /L %A IN (2764375,1,HighestNumber) DO @(WMplayer.exe
"http://Johnen.lines.com/mcasx.asx?media=%A&system=4536760")

Sometimes when this script tries to access a specific WMP file, that file is
UNAVAILABLE. At this point, a popup window would appear with 2 buttons and
I would have to MANUALLY click the OK button for CONTROL to return to my
script when the next WMP file is launched. Here is the question:

** How can I programmatically (from within the batch file) click on the OK
button of the popup window so that control returns to my script
automatically and I do not have to manually intervene to get my script going
again?



Thanks in advance,
John.
 
JohnNews said:
Folks:


I have a script that can launch Windows Media Player (WMP) files
sequentially - one after the other. This is the script:

FOR /L %A IN (2764375,1,HighestNumber) DO @(WMplayer.exe
"http://Johnen.lines.com/mcasx.asx?media=%A&system=4536760")

Sometimes when this script tries to access a specific WMP file, that file is
UNAVAILABLE. At this point, a popup window would appear with 2 buttons and
I would have to MANUALLY click the OK button for CONTROL to return to my
script when the next WMP file is launched. Here is the question:

** How can I programmatically (from within the batch file) click on the OK
button of the popup window so that control returns to my script
automatically and I do not have to manually intervene to get my script going
again?



Thanks in advance,
John.

You could use tlist.exe to check if an identifiable executable
pops up your 2-button window, then use kill.exe to kill that
process. Both tools are included with the Win2000 Resource
Kit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top