Working with Mainframe application in Blue Prism. - mainframe

I've been working whit Blue Prism on a project that was using at one point IBM mainframe application(ICBS). I've mange to get it working, but only problem that I had was Login in to therminal.
My robot lunched application as mainframe app, but after that therminal is asking me to login in, but its doing that in standard Win window - whit option to enter login and password.
Problem is that Blue Prism is not able to spy on thoes elements because it's launched as mainframe.
If I launch this app as standard win application, then there is no problem in login in, but after that working whit mainframe screen is imposible because I can't spy on specyfic elements of the green screens.
I was trying to launched as mainframe, then using another object(Win app) to logon and then go back to mainframe but I cant to Attach Win app Object to allready launched mainframe object. I get "could not be found" error when I'm tring to Attach.
Any idea how to get it working?
Cheers,
RAFEL

Well, there's no other way than having two different objects.
The first one should be the "Mainframe Application" object that is launching from executable file.
The second one should be the "Windows Applications" object that is attaching to appearing window.
I am guessing that you're having a problem with attaching the second object to the window.
The Blue Prism when trying to attach to the object is checking two things:
The name of the process - you can find that information using task manager.
The window title of the target Application - that's the title that is visible at the top of the window.
There is possibility to use *,# and others as wildcard characters.
You'll have to try there around there to get that working.
Below you can find a print screen of one of mine objects that attaches to windows photo viewer.

Related

Is it possible to embed/stream/project the live image of a native Windows window into a webpage?

In the new Microsoft Flight Simulator you can pop different cockpit displays out into their own external windows, like this:
However, none of the buttons needed to interact with the displays get "popped out" as well.
I'd like to build a web app that can embed (the continuously updating image of) one of these windows that I can surround with buttons, etc, for interaction to have, say, running on a tablet next to you.
My question is, is it possible with Node to embed the continuously updating image of a native Windows window within a webpage?
Stumbled upon the Screen Capture API. This is what I was looking for.
https://developer.mozilla.org/en-US/docs/Web/API/Screen_Capture_API

Application launch in blue prism

I am trying to launch an windows application. I have given executable path. Whenever I click on launch, it’s not changing to Identify. It’s coming back to Launch. So what could be the issue?
When the application is successfully launched, but the button does not change from "Launch" to "Detach", it's usually an issue with how you've targeted your window's title.
Usually, appending wildcards to the ends of the window's title will assist in matching correctly. Additionally, ensure that the "Windows process name" field is completed correctly.
This is common for windows applications that are trigger points like RDP, MMC. You would have to have an attach after the launch to gain the connection for identify to become enabled.

Unable to identify remote desktop in Blueprism

I am trying to automate certain things in a remote desktop using surface migration techniques in blueprism.
I have to open Windows Remote Desktop and enter the login details, but i am unable to identify it in application modeller. After launching mstsc.exe using the application modeler the identify button disappears and turns back to launch and due to this i am unable to use region mode to identify or spy elements.
Any solutions for this?
Snippet of the application modeller
I solved this problem creating 2 objects.
- Object one will execute "mstsc.exe"
- Object two will attach an existing mstsc.exe execution
So you have to launch mstsc.exe in your first object then go to the second one and attach it. If everything goes fine, you'll be able to use the application modeler in your second object and identify whatever you need to.
Example first object:
1
Example second object:
2

nternal : Failed to perform step 1 in Navigate Stage 'XXXX' on page 'XXXX' - Not Connected

I am getting "Not Connected" issue while executing a blue prism object. Currently, I'm working for browser application and I have given browser URL and window title in application modeler.
If I launch the application by navigation stage it's working fine but I'm expecting like already running browser we need to attach and has to do some automation operations on it.
We tried with navigation stage with actions attach/Active application, getting issue "Not connected".
Can anyone help on this issue?
Blue Prism best practice is to call “Attach” page at the beginning of each action to make sure that BP is connected to the application. This page should look like this:
Start
Read stage – to check connection status (it will return Flag with connection status)
Decision stage – connection flag
If connected – go to End
If not connected – Navigation stage – Attach
You also need to provide proper input parameters for Attach action, for Browser automation (Internet Explorer) you need to provide at least process name: “iexplore” & child index: 0 (it depends on your TabProcGrowth registry settings).
Blue Prism also recommends to start browser apps using Utility – Environment VBO & Start Process action. There are 2 inputs: Application – Path to internet explorer exe file & Arguments – webpage address.
If you want to learn more about Browser Automations in Blue Prism I recommend you to familiarize with Blue Prism Guides available on Blue Prism Portal - https://portal.blueprism.com/.
Do you have Attach bookmark created? When you are working with object you are creating bookmarks resposible for different things in your obcject(login, start etc) you need to create Attach bookmark.
I never had any problems with attaching to app, except mainframe app.
Copy your Navigate step from Launch bookmark, then create new one(call it attach) and paste that Navigate step. Then Edit it, Chane from launch to attach and in Properties you need to fill "Window Title" and "Process Title". Window title, you have it at the top window bar. Process title, youll find it in Windows Task Menager - Processes.
Hope it helps!
Well, I am not sure exactly sure if this is your problem but let me try as my issue is close to your issue.
I had encountered this: There is no current stage
So what I did was to trigger the reset button in the upper left corner of the Process Studio. Screenshot below.
Then it works like a charm!
This is because the launched instance of the application is different from the one BP is searching for. To solve this issue close the current instance of the app and Launch it from the Application Modeller.

Desktop capture - Does not show all windows during sharing contents of Desktop

Here is the link to my extension code:
Trying to capture desktop image using getUserMedia and canvas
The problem is that when I use :
chrome.desktopCapture.chooseDesktopMedia(["screen", "window"],onAccessApproved);
It asks me to share contents of my screen. But it doesn't show all windows that are active on my desktop.
Example: Sometimes my skype is minimised and if click the extension icon it opens a sharing panel and asks me to share desktop contents but skype window is not shown in this panel. If I click on skype from my task bar, the sharing panel shows skype. Reason for this behaviour?
How to show all my windows on sharing screen?
Well, the behavior is consistent: on Windows, minimized windows are not shown as eligible capture targets. There is no way around it.
This limitation is not documented, which is regrettable; it may also be OS-specific.
Specifically, Windows implementation contains the following comment:
// Skip windows that are invisible, minimized, have no title, or are owned,
// unless they have the app window style set.
Interestingly, this seems more like a Mac limitation than a Windows one:
// Return a 1x1 black frame if the window is minimized, to match the behavior
// on Mac.

Resources