Jump to content

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


magodiez
 Share

Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...