cancel
Showing results for 
Search instead for 
Did you mean: 

Global Send Keys Event requries mainframe to be in focus

jasre
Level 3
I am working on an object which is using interfacing with an IBM Mainframe. To confirm inputs is used either Ctrl ("{CTRL}") or NumPad Enter ("{Enter}"). While both of these works just fine while the mainframe window is in focus, they do not work if any other window is the one in focus. E.g. if you press "Run" in the Object Editor, the editor will become gain focus, and Global Send Keys Event no longer works. This can be countered by manually clicking the mainframe window to regain focus, but this seems somewhat silly. Is there anyone who knows a way to get Global Send Keys Event to work on an IBM Mainframe, regardless of whether or not it is the focused window?
11 REPLIES 11

I am using OpenText HostExplorer COM API to launch and connect mainframe. Read and write seems to be working fine but however global send keys seems not working.
I have to use global send keys events to press {enter}. As  set focus mainframe window not an option. 

When I try global send key, it just types the value in the cursor position. 

Please suggest me , how to overcome this problem. I have already gone through all the materials and knowledge base on this topic and no answer.

------------------------------
Jukkendar sundaram
------------------------------

Kristopher_Jays
Level 2
I'm a blueprism novice and although I'd like to believe that you have already found the answer for this since it's been 4 years since you posted this question, I just would like to share that my workaround for this is to minimize the other program to regain focus to mainframe. I am getting screenshots from IBM mainframe and pasting it to excel and I was able to regain focus to mainframe by minimizing the excel window using Set State to "min" in Excel VBO.

------------------------------
Kristopher Jayson Bondoc
Travel Operations Specialist
IBM Business Services
Asia/Manila
------------------------------