bbsbruno

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

13 posts in this topic

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



#2 ·  Posted (edited)

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

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Does the emulator provide a COM API?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (2016-08-18 - Version 1.4.6.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2016-12-04 - Version 1.2.2.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

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

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


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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

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  


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

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 


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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