cancel
Showing results for 
Search instead for 
Did you mean: 

Exception during remote setforegroundwindow

zainebdhifli
Level 2
Hi, I am facing this error when I tried to activate window in win32 mode. Could anyone please help me to handle this error

Exception during remote setforegroundwindow - System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at BluePrism.ApplicationManager.Operations.WindowOperationsProvider.ForceForeground(IntPtr windowHandle)Choice' - Unable to match any windows with the query terms

Thanks!

------------------------------
zaineb dhifli
------------------------------
6 REPLIES 6

PabloSarabia
Level 11
Hi @zainebdhifli1

I assume that you are getting this error when you try to Launch or Attach an application from the Navigation Stage, right?

Or what are you doing to get the error?


See you in the community, bye :)​

------------------------------
Pablo Sarabia
Architect
Altamira Assets Management
Madrid
------------------------------

Hi Pablo,
Thank you for your response, I am getting this error when I am trying to Press button with navigate stage.
Can you help me please to solve this issue?
Thaks§

------------------------------
zaineb dhifli
------------------------------

Hi,

Do You have the Application atrached before sending the press action?


Bye 🙂

------------------------------
Pablo Sarabia
Architect
Altamira Assets Management
Madrid
------------------------------

Hi,

Yes the application is attached before sending Press button.
Thanks

------------------------------
zaineb dhifli
------------------------------

Hi,

Spy the border of application and use that for activate application and use focus before press or click.

Hope it will help you.

Thanks
Nilesh

------------------------------
Nilesh Jadhav
Senior RPA Specialist
ADP
India
------------------------------
Nilesh Jadhav.
Consultant
ADP,India

ManpreetKaur1
Level 8
Hi @zainebdhifli1,

Activation of any window is always done by spying the outermost part of the window and then using 'Activate application' action using Navigate stage. This is applicable for any kind of application.​

------------------------------
Manpreet Kaur
Manager
Deloitte
------------------------------