Need a little help please.

Discuss RoboTask here
Post Reply
snapless
Posts: 1
Joined: Mon Nov 21, 2005 2:43 am
Location: United States

Need a little help please.

Post by snapless »

I just downloaded Robotask a couple of days ago and am impressed with
what I've seen so far. I'm trying to learn it and coming along fine.
However there is one program I have (the most important one) which I
really need to get this up and running for quickly and efficiently.

I have an executable configuration file which, when double-clicked,
runs a launcher, then opens a third and separate program and sends the
configuration info to that program. This program runs on the internet,
and the problem is: anytime the internet connection is severed, even
for an instant, the program ends.

I have set up Robotask to watch for this program to die, which it does.
I've set it to execute the configuration file, which it does. I can't
use the 'wait until application is open' feature because the executable
file is NOT the final program. So I've put in a 'pause' and 'check for
window'. However, I need more and I'm probably being blind as to what I
need to use.

What I need is something (maybe If...then?) which checks to make sure
the third and final program is running, and if so, continues, but if
not, checks for abnormal termination of the launcher. If launcher is
not functioning, re-executes the configuration file. If launcher IS
functional and the program is just being slow, inserts an additional
pause before continuing.

Any ideas? Do I need to include more information?

Last edited by snapless on Mon Nov 21, 2005 6:55 am, edited 1 time in total.
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Need a little help please.

Post by Oleg »

1. You can check existence of process in memory via macrovariable {IsProcessExists()}
Look at this construction:

if {IsProcessExists(MyFinalProg.exe)} = false then // check final process
   if {IsProcessExists(Launcher.exe)} = false then // check the launcher
      run Launcher.exe // restart Launcher
   end if
end if

Also you can put those steps into separate task and set up Cyclic triggering event for it (for example: every 10 sec)

2. You can check internet connection by Ping Host action before launching of your application.
As host you can specify google.com (as very reliable server)
Post Reply