Jump to content

Getting a list of all ControlID


jftuga
 Share

Recommended Posts

How can I get a list of all ControlIDs for a given Window title? Also, is there a way to get the type of said ID, like textbox, radio, button, dropdown, etc? I would like the extract the text from all of the textbox's.

EDIT

Maybe this does it?? Although, it does not seems to return anything useful.

Dim $slots[4096]
    Dim $textbox

    Dim $title = WinGetTitle("")

    Dim $data = WinGetClassList($title, "")

    Dim $fp = FileOpen("oc.txt",2)
    
    $slots = StringSplit( $data, @LF )
    MsgBox(0,"slots:", $slots[0])
    for $i = 1 to $slots[0]
        FileWriteLine($fp, $slots[$i] & @TAB & ControlGetText($title, "", $slots[$i]))
    next

    
    FileClose($fp)

Thanks,

-John

Edited by jftuga
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...