Jump to content

is there a way to get control id?


aris
 Share

Recommended Posts

(c#)

i have the control name like Button3 but i need to get the id. i can see this from autoit window info but i want to get it real time.

i can get pos,width height etc but not id? i didn't find any function to do this.

thanks

Link to comment
Share on other sites

_WinGetCtrlInfo() ?

What on earth are you smoking?

@aris

You probably want _WinAPI_GetDlgCtrlID. You'll need the control handle for that function, so you may also need to use _WinAPI_WindowFromPoint or ControlGetHandle, depending on what other info you have.

Edited by wraithdu
Link to comment
Share on other sites

Oh... nevermind, you can't. I wondered why you prefaced with C# but left it at that.

I don't think there are any functions to do what you want in AutoitX. You should just call the API functions natively from C#. Don't ask me though, I'm not a C# guy.

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