Wait for task activity

Discuss RoboTask here
Post Reply
Helix78
Posts: 11
Joined: Tue May 27, 2014 9:17 am

Wait for task activity

Post by Helix78 »

Is there any chance to wait until a running task has no CPU activity anymore?

I have an Excel API. Robotask opens an Excel file and then has to wait until cells get filled with data from the API. I can have Robotask wait for a certain period of time but that is more time consuming than checking the activity of a specific task.

Is this possible? Maybe in Basic Script?

Thanks in advance
Oleg
Site Admin
Posts: 3202
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Wait for task activity

Post by Oleg »

See Wait for Task action. This actions stops the current task and waits until the specified task will be finished.
If the task is already stopped the action doesn't wait.
Oleg Yershov
Helix78
Posts: 11
Joined: Tue May 27, 2014 9:17 am

Re: Wait for task activity

Post by Helix78 »

Sorry, I didn't describe correctly.
I want to wait for a task becoming idle which is not an Robotask but a Windows task.
Oleg
Site Admin
Posts: 3202
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Wait for task activity

Post by Oleg »

Unfortunately RoboTask can't check the activity of Windows tasks.
But you can check the certain application (EXE module) in memory.

Look at Wait for Process Finish and Wait for Process Start actions.
Also see {IsProcessExists()} system variable.
Oleg Yershov
Post Reply