Jump to content

Recommended Posts

Posted

I am trying to read the data from the mainframe screen sessions. can anyone help me or guide me how is it done.

 

Thank You

Posted

Depends on the emulation software you run.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Posted

PC3270 provides an API (COM) to access the mainframe session.
IIRC this has been discussed a feew times on the forum - means: The search feature should return a few hits pointing you into the right direction.
Example:

 

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Posted

@water.. I am sorry for asking again and again. I am not able to understand that how do we run the mainframe session. Like we write Run("calc.exe") for calculator . How do we do that for the mainframe sessions.

 

Thanks

Posted (edited)

The thread I posted above should give you an idea. It mentions 5250 (S/36, AS/400) but works the same way for 3270.
When PC is installed on your PC you call the HLLAPI DLL and the interact with the host session.
The thread shows a framework to handle all needed processing.

Do you have the PC3270 documentation available (or can you download it form the web)?
 

Edited by water

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Posted

Hi,

I am trying to write a script wherein I have to search for a text in the screen. Can anyone help me in that.. Thanks

Posted

what do you have so far.

The simple straight forward screenscraping approach

  1. Send a select all (ctrl+a frequently) to the terminal
  2. Send a copy all (ctrl+x) to the terminal
  3. Use the clipboard functions to get your string in a variable

More complex is on the 3270 screens to get the colordetails. For that you have to emulate the terminal with hllapi.dll which you can read in IBM examples of visual basic or c# as given in other post.

 

Posted

Hi,

I am trying to write a script to select the text at the specified coordinates.

example: like the word starts at the position 16, 10(row, column).

Can anyone help me out in this thing.

 

Thanks

Posted

How far did you try?

If you screenscrape a screen you get 1 lengthy string with a certain length from your clipboard

Normally you can split that in pieces of 80 or 132 characters (and sometimes you get CRLF characters after each line)

Then its a simple math  (16 * linesize) + 10 to get your substring starting point

study clip*,  string* functions over here https://www.autoitscript.com/autoit3/docs/functions.htm

and probably you need controlsend/send to send ctrl+a, ctrl+c

 

 

 

 

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...