Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

how can i read a text from another application ?

$
0
0
Hii,

I try read a text from my application. I did used the commands "ControlGetText", "WinGetText" and "GUICtrlRead", but the return is always blank or 0.
I didnt found any example to help me. :
Have a way what i can do this?

Here is my code

[ autoit ]      
WinWaitActive("SAC - Sistema de Atendimento ao Cliente") Local $sText = ControlGetText("SAC - Sistema de Atendimento ao Cliente","","[CLASS:TspDateTimeCombo; INSTANCE:18]") MsgBox(0, 'Texto da Tela', $sText)

Here is my application, the black box it's the text i want to read

Posted Image

Here it's the AutoIt Windows Info summary



>>>> Window <<<<
Title: SAC - Sistema de Atendimento ao Cliente
Class: TfsacMenu
Position: -8, -8
Size: 1616, 876
Style: 0x17CF0000
ExStyle: 0x00010100
Handle: 0x001504B6

>>>> Control <<<<
Class: TspCampoMascara
Instance: 54
ClassnameNN: TspCampoMascara54
Name:
Advanced (Class): [CLASS:TspCampoMascara; INSTANCE:54]
ID: 67934
Text:
Position: 400, 353
Size: 288, 20
ControlClick Coords: 130, 10
Style: 0x5C010000
ExStyle: 0x00000200
Handle: 0x0001095E

>>>> Mouse <<<<
Position: 530, 405
Cursor ID: 0
Color: 0xE8E8E8

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<
tlCliente
Cadastro de Atendimentos
SLA
  /  /       :  :    
  /  /       :  :    
  /  /       :  :    
  /  /       :  :    
  /  /       :  :    
  /  /       :  :    
08/03/2013 02:51:00 PM
08/03/2013 02:51:00 PM
  /  /       :  :    
  /  /       :  :    
Contrato
Atendimento cadastrado com versão em Homologação
  /  /       :  :    
  /  /       :  :    
  /  /       :  :    
  /  /       :  :    
SLA Interno
  /  /       :  :    
SLA esta parada
14/03/2013 06:00:00 PM
Possui SLA
  /  /       :  :    
Atend. Priorizado
07/03/2013 11:30:45 AM
SLA possui início automático
bfBarraCadastro


>>>> Hidden Text <<<<
Inicio Auto
sla parado
Ca&dastro
Rateio Padrão
Descrição interna
Descrição da solicitação
Tela Sistema: Tela Selenium

Descrição: Teste Selenium
Possui SLA
14/03/2013 06:00:00 PM
SLA esta parada
Aceito
  /  /    
07/03/2013 11:30:45 AM
Divulgar na RAV
14/03/2013 06:00:00 PM
  /  /    
Encerr&amento
Destaque
14/03/2013 06:00:00 PM
ok
Notificar o cliente por e-mail
08/03/2013 02:50:57 PM
Histórico do Atend.
Padrão
Orçamento / Requisitos
Alterar Faturamento
  /  /       :  :    
  /  /    
07/03/2013 11:30:45 AM
Salts Vinculadas
&Versão
C&onsulta
spButton1

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>