Sign in to follow this  
Followers 0
RRuelas

How to read a Hidden Text

3 posts in this topic

#1 ·  Posted (edited)

Hello, I´m trying to read from an application, but the data I want is shown as hidden file on the "Window Info" window. I´m attaching below the info I got, right in the row below the Hidden Text header, there´s a number, 32, that is the data I want to read.

Need your help on this pls.....I think it´s pretty simple, but I´m totally new on this.

what is the command I need to use? With the scritp below, I get AI_Temp_Tanque_Enfriam as a result, but that is a column on the left of the data I need (in my application).

Thx a lot.

#include <GUIComboBox.au3>

Local Const $hCombo = ControlGetHandle("RSLogix 5000 - Tube in Tube_Abril16_2013.ACD [1756-L55] - [Controller Tags - Tube(controller)]", "", "[CLASS:GXEDIT; INSTANCE:2]")

If $hCombo = 0 Then Exit(1)

Local $sText = ControlGetText("[CLASS:Afx:400000:8:10011:0:40e8f]", "", "GXEDIT2")

;$sText = $hCombo

MsgBox(0, "ControlGetText Example", "The control text is: " & $sText)

Run ("notepad.exe")

sleep(1000)

Send($sText)

=================================================

>>>> Window <<<<

Title: RSLogix 5000 - Tube in Tube_Abril16_2013.ACD [1756-L55] - [Controller Tags - Tube(controller)]

Class: Afx:400000:8:10011:0:40e8f

Position: -4, -4

Size: 1288, 808

Style: 0x15CF0000

ExStyle: 0x00000100

Handle: 0x00440F50

>>>> Control <<<<

Class: GXEDIT

Instance: 2

ClassnameNN: GXEDIT2

Name:

Advanced (Class): [CLASS:GXEDIT; INSTANCE:2]

ID: 10105

Text:

Position: 338, 173

Size: 237, 13

ControlClick Coords: 37, 5

Style: 0x500109C4

ExStyle: 0x00000000

Handle: 0x0006107A

>>>> Mouse <<<<

Position: 379, 228

Cursor ID: 5

Color: 0xD4D0C8

>>>> StatusBar <<<<

1:

2:

>>>> ToolsBar <<<<

>>>> Visible Text <<<<

Controller Tags - Tube(controller)

AI_Temp_Tanque_Enfriam

Sco&pe:

Tube(controller)

Sh&ow:

DROPDLG_BTN

Show All

So&rt:

Tag Name

Classic Online

Language Element

SCROLLRIGHT_BTN

SCROLLLEFT_BTN

Path Bar

Animate1

COMBO

...

DeliciasTubo10.88.2.101Backplane0*

Path:

Online

Rem Run

No Forces

Redundancy

No Edits

Run Mode

Controller OK

Battery OK

I/O Not Responding

Standard

SCL_01

SCL_01

Controller Organizer

Controller Organizer

Controller Organizer

Results

>>>> Hidden Text <<<<

32

AI_Temp_Tanque_Enfriam

&Refresh

Classic Online

DeliciasTubo10.88.2.101Backplane0*

Animate1

COMBO

Remote Run

No Forces

No Edits

Forces Disabled

COMBO

Path:

Ladder Common Logic

Language Editor Editing

New Component

Results

Uploading project from controller Tube into file Tube_Abril16_2013.ACD...

Erasing the Database...

Uploading all DataTypes...

Uploading all Controller Tags...

Uploading Device, Extended Device, and Memory Objects...

Uploading all Programs...

Uploading Program: TPL_LogicAndReference

Uploading TPL_LogicAndReference Tags...

Uploading TPL_LogicAndReference Charts...

Uploading TPL_LogicAndReference Routines...

_03a_Position_Loop

_03b_RunJogSpdRf

_07_DriveRF

_99_Tuneables_Not_Run

_05_AvgFbDisplay

_01_Main

_04_DriveRf

_02_Logic

Uploading Program: TPOutput

Uploading TPOutput Tags...

Uploading TPOutput Charts...

Uploading TPOutput Routines...

TPOuts

Uploading Program: TubeExt_Misc_Logic

Uploading TubeExt_Misc_Logic Tags...

Uploading TubeExt_Misc_Logic Charts...

Uploading TubeExt_Misc_Logic Routines...

_06_Interprocessor

MainTubeExtruderLogic

_03_Gearbox_Lube

_01_Cooling_Tank

ProductionTime

_02b_InternalLubeReference

_05_AlarmAnnunciation

Cooling_Tank_R2

_02a_Internal_Lube

_04_Alarms_To_PV

Uploading Program: Tuber_Master_Logic

Uploading Tuber_Master_Logic Tags...

Uploading Tuber_Master_Logic Charts...

Uploading Tuber_Master_Logic Routines...

_02b_PvRefSync

_03_MasterRefRamp

Main

_02a_RunSeq

_01_Enab_Disab

Uploading Program: KNIT_LogicAndReference

Uploading KNIT_LogicAndReference Tags...

Uploading KNIT_LogicAndReference Charts...

Uploading KNIT_LogicAndReference Routines...

_03a_Position_Loop

_05_AvgFbDisplay

_02b_RatioDetectorScaling

_02a_Logic

_03b_RunJogSpdRf

_04_DriveRf

_02c_RatioDetector

_01_Main

_99_Tuneables_Not_Run

Uploading Program: TEX_LogicAndReference

Uploading TEX_LogicAndReference Tags...

Uploading TEX_LogicAndReference Charts...

Uploading TEX_LogicAndReference Routines...

_02_RunJogSpdRf

Main

_04_AvgFbDisplay

_03_DriveRf

_01_Logic

Uploading Program: TCL_LogicAndReference

Uploading TCL_LogicAndReference Tags...

Uploading TCL_LogicAndReference Charts...

Uploading TCL_LogicAndReference Routines...

_02_Logic

_05_AvgFbDisplay

_07_DriveRF

_99_Tuneables_Not_Run

_07_DriveRF1

_04_DriveRf

_01_Main

_03_RunJogSpdRf

Uploading Program: Notes

Uploading Notes Tags...

Uploading Notes Charts...

Uploading Notes Routines...

PRL_Notes

TWU_Notes

TCL_Notes

Main

TPL_Notes

KNIT_Notes

Uploading Program: TWU_LogicAndReference

Uploading TWU_LogicAndReference Tags...

Uploading TWU_LogicAndReference Charts...

Uploading TWU_LogicAndReference Routines...

_01_Main

_04_DriveRf

_05_AvgFbDisplay

_02_Logic

_99_Tuneables_Not_Run

_03_RunJogSpdRf

Uploading Program: TempLoops

Uploading TempLoops Tags...

Uploading TempLoops Charts...

Uploading TempLoops Routines...

Heater_Monitor_Not_Run

Zone2TempLoop

MainTempLoops

Zone5TempLoop

Zone4TempLoop

Zone1TempLoop

Heat_Outputs

Zone3TempLoop

Uploading Program: PRL_LogicAndReference

Uploading PRL_LogicAndReference Tags...

Uploading PRL_LogicAndReference Charts...

Uploading PRL_LogicAndReference Routines...

_01_Main

_05_AvgFbDisplay

_03_RunJogSpdRf

_04_DriveRf

_02_Logic

_07_DriveRF

_99_Tuneables_Not_Run

Uploading all Tasks...

Uploading all Modules...

Uploading all PLC/SLC Tag Mapping Information...

Building routine _01_Main of program KNIT_LogicAndReference

Building routine _02a_Logic of program KNIT_LogicAndReference

Building routine _02b_RatioDetectorScaling of program KNIT_LogicAndReference

Building routine _02c_RatioDetector of program KNIT_LogicAndReference

Building routine _03a_Position_Loop of program KNIT_LogicAndReference

Building routine _03b_RunJogSpdRf of program KNIT_LogicAndReference

Building routine _04_DriveRf of program KNIT_LogicAndReference

Building routine _05_AvgFbDisplay of program KNIT_LogicAndReference

Building routine _99_Tuneables_Not_Run of program KNIT_LogicAndReference

Building routine KNIT_Notes of program Notes

Building routine Main of program Notes

Building routine PRL_Notes of program Notes

Building routine TCL_Notes of program Notes

Building routine TPL_Notes of program Notes

Building routine TWU_Notes of program Notes

Building routine _01_Main of program PRL_LogicAndReference

Building routine _02_Logic of program PRL_LogicAndReference

Building routine _03_RunJogSpdRf of program PRL_LogicAndReference

Building routine _04_DriveRf of program PRL_LogicAndReference

Building routine _05_AvgFbDisplay of program PRL_LogicAndReference

Building routine _07_DriveRF of program PRL_LogicAndReference

Building routine _99_Tuneables_Not_Run of program PRL_LogicAndReference

Building routine _01_Main of program TCL_LogicAndReference

Building routine _02_Logic of program TCL_LogicAndReference

Building routine _03_RunJogSpdRf of program TCL_LogicAndReference

Building routine _04_DriveRf of program TCL_LogicAndReference

Building routine _05_AvgFbDisplay of program TCL_LogicAndReference

Building routine _07_DriveRF of program TCL_LogicAndReference

Building routine _07_DriveRF1 of program TCL_LogicAndReference

Building routine _99_Tuneables_Not_Run of program TCL_LogicAndReference

Building routine Heater_Monitor_Not_Run of program TempLoops

Building routine Heat_Outputs of program TempLoops

Building routine MainTempLoops of program TempLoops

Building routine Zone1TempLoop of program TempLoops

Building routine Zone2TempLoop of program TempLoops

Building routine Zone3TempLoop of program TempLoops

Building routine Zone4TempLoop of program TempLoops

Building routine Zone5TempLoop of program TempLoops

Building routine Main of program TEX_LogicAndReference

Building routine _01_Logic of program TEX_LogicAndReference

Building routine _02_RunJogSpdRf of program TEX_LogicAndReference

Building routine _03_DriveRf of program TEX_LogicAndReference

Building routine _04_AvgFbDisplay of program TEX_LogicAndReference

Building routine _01_Main of program TPL_LogicAndReference

Building routine _02_Logic of program TPL_LogicAndReference

Building routine _03a_Position_Loop of program TPL_LogicAndReference

Building routine _03b_RunJogSpdRf of program TPL_LogicAndReference

Building routine _04_DriveRf of program TPL_LogicAndReference

Building routine _05_AvgFbDisplay of program TPL_LogicAndReference

Building routine _07_DriveRF of program TPL_LogicAndReference

Building routine _99_Tuneables_Not_Run of program TPL_LogicAndReference

Building routine TPOuts of program TPOutput

Building routine Cooling_Tank_R2 of program TubeExt_Misc_Logic

Building routine MainTubeExtruderLogic of program TubeExt_Misc_Logic

Building routine ProductionTime of program TubeExt_Misc_Logic

Building routine _01_Cooling_Tank of program TubeExt_Misc_Logic

Building routine _02a_Internal_Lube of program TubeExt_Misc_Logic

Building routine _02b_InternalLubeReference of program TubeExt_Misc_Logic

Building routine _03_Gearbox_Lube of program TubeExt_Misc_Logic

Building routine _04_Alarms_To_PV of program TubeExt_Misc_Logic

Building routine _05_AlarmAnnunciation of program TubeExt_Misc_Logic

Building routine _06_Interprocessor of program TubeExt_Misc_Logic

Building routine Main of program Tuber_Master_Logic

Building routine _01_Enab_Disab of program Tuber_Master_Logic

Building routine _02a_RunSeq of program Tuber_Master_Logic

Building routine _02b_PvRefSync of program Tuber_Master_Logic

Building routine _03_MasterRefRamp of program Tuber_Master_Logic

Building routine _01_Main of program TWU_LogicAndReference

Building routine _02_Logic of program TWU_LogicAndReference

Building routine _03_RunJogSpdRf of program TWU_LogicAndReference

Building routine _04_DriveRf of program TWU_LogicAndReference

Building routine _05_AvgFbDisplay of program TWU_LogicAndReference

Building routine _99_Tuneables_Not_Run of program TWU_LogicAndReference

Reading ChangeLog...

Reading ChangeLog...

Complete - 0 error(s), 0 warning(s)

Watch List:

Refresh

Edited by Melba23
Added tags

Share this post


Link to post
Share on other sites



GRRREEAT!!

I´ll make sure to include this forum and JohnOne as part as my project documentation

Thx a lot.

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
Sign in to follow this  
Followers 0