Sign in to follow this  
Followers 0
magodiez

Can't find ControlID in internal aplication, any solution?

3 posts in this topic

#1 ·  Posted (edited)

Hello,

Trying to test an internal aplication, I'm not able to find what it is the ControlID of any of the Controls into the aplication window with the "Window Info" aplication. I've tried some scripts too, trying to return the text with [iD:XXXX] (tried to find the text with a for, from 0 to 100000), [TEXT,"Exit"] and even some scripts found in the forum, but I can't find any Control.

Local $text = ""
WinActivate("[CLASS:IlogViewsWndClass]")
$text = ControlGetText("[CLASS:IlogViewsWndClass]",'', "[TEXT:'Exit']")
If(@error <> 1) Then
  ConsoleWrite(">" & $text & @CRLF)
EndIf
For $i=1 To 100000
$text = ControlGetText("[CLASS:IlogViewsWndClass]",'', "[ID:" & $i & "]")
If(@error <> 1) Then
  ConsoleWrite(">" & $text & @CRLF)
EndIf
Next

Is there any other way to interact with the button/combo/textfields/menu to click/select/type them (without x,y coordinates) or I'm forced to do it by keyboard with the TAB, !, etc.?

And if I only can do it by keyboard, is there any way of knowing the state or text of the different Controls ( Obviously without the ControlId)?

Thank,

Edited by magodiez

Share this post


Link to post
Share on other sites



Try this:

ControlClick("[CLASS:IlogViewsWndClass]","", "Exit", "left")

#include <ByteMe.au3>

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Doesn't work, I'm not sure I can find a ControlID or text for the buttons.

I've also tried this to find the ControlID with ControlGetFocus, and it returns nothing, and no error

WinActivate("[CLASS:IlogViewsWndClass]")
ConsoleWrite(ControlGetFocus("[CLASS:IlogViewsWndClass]"))
If @error = 1 Then
ConsoleWrite("error")
EndIf
Edited by magodiez

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