bbsbruno Posted March 7, 2016 Posted March 7, 2016 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 .
Developers Jos Posted March 7, 2016 Developers Posted March 7, 2016 (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 March 7, 2016 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
water Posted March 7, 2016 Posted March 7, 2016 Does the emulator provide a COM API? 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
bbsbruno Posted March 7, 2016 Author Posted March 7, 2016 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
Developers Jos Posted March 7, 2016 Developers Posted March 7, 2016 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 etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
bbsbruno Posted March 7, 2016 Author Posted March 7, 2016 It has an internal function but seems to be more difficult to use than the autoit not know if it connects to the database
Developers Jos Posted March 7, 2016 Developers Posted March 7, 2016 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 etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
bbsbruno Posted March 7, 2016 Author Posted March 7, 2016 I managed to find the word on the screen using _ClipBoard_GetData ($ CF_TEXT)
Developers Jos Posted March 7, 2016 Developers Posted March 7, 2016 That means you first did a Copy in the Irma session as the data in present in the Clipboard? Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
bbsbruno Posted March 7, 2016 Author Posted March 7, 2016 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.
Developers Jos Posted March 7, 2016 Developers Posted March 7, 2016 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 etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
bbsbruno Posted March 8, 2016 Author Posted March 8, 2016 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
junkew Posted March 8, 2016 Posted March 8, 2016 Clipget and clipput functions? https://www.autoitscript.com/autoit3/docs/functions/ClipGet.htm Why paste to notepad? FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now