Jump to content
bbsbruno

has somehow find a word written on the screen of a mainframe emulator

Recommended Posts

bbsbruno

I have an application that User enter to see if the process is released, only this application is 3270 emulator (IRMA), I wanted to check if you have a specific word on his screen and write to a variable, because then I'll consult the database .

Share this post


Link to post
Share on other sites
Jos
16 minutes ago, bbsbruno said:

Application is 3270 emulator (IRMA)

Talking about a "blast from the past". :)

Have you checked with au3info.exe to see whether there is any data available in the control or window parts?

  Jos

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
water

Does the emulator provide a COM API?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
bbsbruno

Water , It does not have API, at least I unaware.

 

Jos ,these are the screen information, has no title only class.

 

I'm sorry for my bad English. I'm still learning .

 

>>>> Window <<<<
Title:    
Class:    MdiFrame
Position:    -4, -4
Size:    1032, 746
Style:    0x17CF0000
ExStyle:    0x00000100
Handle:    0x00180202

>>>> Control <<<<
Class:    MdiEmuChild
Instance:    1
ClassnameNN:    MdiEmuChild1
Name:    
Advanced (Class):    [CLASS:MdiEmuChild; INSTANCE:1]
ID:    36864
Text:     SERPRO.EMU [A]
Position:    -4, 0
Size:    1032, 673
ControlClick Coords:    418, 301
Style:    0x57C70000
ExStyle:    0x00000140
Handle:    0x000B0156

>>>> Mouse <<<<
Position:    414, 347
Cursor ID:    0
Color:    0x00FFFF

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<
 SERPRO.EMU [A]
 SERPRO.EMU [A]
 SERPRO.EMU [A]
Standard
Graphics


>>>> Hidden Text <<<<
Graphics
 

 

Share this post


Link to post
Share on other sites
Jos

Assume you are using tn3270 and not a good old IRMA card with a BNC coaxial connection.
Didn't  IRMA contain its own internal scripting option to automate things?

Jos


SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
bbsbruno

It has an internal function but seems to be more difficult to use than the autoit not know if it connects to the database

Share this post


Link to post
Share on other sites
Jos

Understand, but am not sure you can easily use AutoIt3 scripting unless it can interface to the internal information.
It will need some sort of API or COM interface as water stated for it to work.

Jos  


SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
bbsbruno

I managed to find the word on the screen using _ClipBoard_GetData ($ CF_TEXT)

Share this post


Link to post
Share on other sites
bbsbruno

yes it was the way I found. I make a copy to clipboard and check if there is the word.
Now I will try to write to a variable.

Share this post


Link to post
Share on other sites
Jos

That could work, but hope your system response time is pretty consistent or else it could be difficult to know whether the screen is done building.

Jos 


SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
bbsbruno

I will try to do so, I thought I'd paste in notepad, but I think it would be slower. I'll try to see if there is the word, write to a variable and write to the database, the information being within the database put a procedure or trigger to the rest of the operation. Let's see if it will work :)

Share this post


Link to post
Share on other sites

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

×