Hi,
I have an Internet Explorer window and another application that I launched via blue prism. How to switch between windows and do treatments on it???
Is there a basic function in blue Prism ?
I tried several codes:
In Initializes:
Public Class PInvoke
Public Shared Function ShowWindow (ByVal hwnd As IntPtr, ByVal nCmdShow As Integer) As Boolean
End Function
Public Shared Function SetForegroundWindow(ByVal hwnd2 As IntPtr) As Boolean
End Function
End Class
Public Declare Function BringWindowToTop Lib "user32" (ByVal hwnd As IntPtr) As Boolean
Object code:
PInvoke.ShowWindow(hWnd, nCmdShow) with hWnd the process ID and nCmdShow (https://msdn.microsoft.com/fr-fr/library/windows/desktop/ms633548(v=vs.85).aspx)
But the ShowWindow or BringWindowToTop or SetForegroundWindow function does not seem to do anything, PB goes through the box but nothing happens.
Helppp!