cancel
Showing results for 
Search instead for 
Did you mean: 

Runtime Resources with multiple Run time resources

HarishM2
Level 6

Hi, I was  reading the  infrastructure reference guide  version 6.3.

One of the section "Runtime Resources with multiple Runtime Resources" it was mentioned:

"Each process that runs simultaneously on a single Runtime Resource must be able to successfully identify the application

(s) that were launched for its use. (E.g. if there are 5 processes each using Internet Explorer, each process must be able to

successfully identify which is the appropriate one to use)."

I know we can identify the Process id  or child index in Launch action but does it work if we use global send keys ?



------------------------------
Harish
RPA Developer
------------------------------
2 REPLIES 2

John__Carter
Staff
Staff
I think you'd have to make sure the target window was in focus for GSK to work, otherwise the keys could hit the wrong window. Think of GSK as typing on the keyboard with your eyes shut - if the cursor is in the right place it will work, but if the cursor is elsewhere, your typing will go astray.

------------------------------
John Carter
Professional Services
Blue Prism
------------------------------

Hi,

You can create simple code action which returns the process you start ID for later usage in attach action (there's an option to attach by process ID):


Input parameters:
Process Name (text)
Arguments (text)

Output:
Process Id (number)

Code (adjust if you need):
Dim myProcess As System.Diagnostics.Process
myProcess = new Process()
myProcess.StartInfo.FileName = Process_Name

If Arguments<>"" Then
myProcess.StartInfo.Arguments = Arguments
End If
myProcess.Start
myProcess.WaitForInputIdle()
Process_Id = myProcess.ID


It might require
System.Diagnostics
In the namespace imports in initialize page object properties




------------------------------
Mindaugas Breskus
Software engineer
Swedbank
Europe/Vilnius
------------------------------