Jump to content
Sign in to follow this  
aris

is there a way to get control id?

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

hi thanks,

i have a problem with that ive never used udf from c#. im using the dll and a class with all function refs, no udf funtions there. any hint as to how use it?

Share this post


Link to post
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

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...