cancel
Showing results for 
Search instead for 
Did you mean: 

Get cursor position from a mainframe application

JeremyRTDean
Level 5

I am interacting with an IBM Midrange application (greenscreen) that indicates an error on submit of an Order by highlighting the field and placing the cursor on it.

Fine for a human to work with but Blue Prism can't see the highlighting and there seems to be no way to identify the cursor position.

I thought perhaps Global Send Key up and count up to the top of the page but the cursor just loops around the page - it doesn't stop at the top.

Any ideas on how to identify the cursor position?

2 REPLIES 2

PvD_SE
Level 12

Hi Jeremy,

On most emulators for IBM i and Mainframe, the cursor row and column position is on display in the bottom of the screen.  Something like this:
35719.pngwhich indicates the cursor to be on row 21 and position 7. The place where you can find these coordinates differs per emulator, the example above is from IBM ACS,

Happy coding!
---------------
Paul
Sweden

Happy coding!
Paul, Sweden
(By all means, do not mark this as the best answer!)

JeremyRTDean
Level 5

Good answer Paul van Doorn!  Now I just need to work out how to get access to that footer area of the window.  Currently Blue Prism doesn't seem to be able to see/read it.

-Jeremy