aris Posted November 10, 2011 Share Posted November 10, 2011 (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 More sharing options...
DicatoroftheUSA Posted November 10, 2011 Share Posted November 10, 2011 _WinGetCtrlInfo() ? Statism is violence, Taxation is theft. Autoit Wiki Link to comment Share on other sites More sharing options...
aris Posted November 10, 2011 Author Share Posted November 10, 2011 wot? there is no such funtion on the help file? Link to comment Share on other sites More sharing options...
wraithdu Posted November 10, 2011 Share Posted November 10, 2011 (edited) _WinGetCtrlInfo() ?What on earth are you smoking?@arisYou 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 November 10, 2011 by wraithdu Link to comment Share on other sites More sharing options...
aris Posted November 10, 2011 Author Share Posted November 10, 2011 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? Link to comment Share on other sites More sharing options...
wraithdu Posted November 10, 2011 Share Posted November 10, 2011 (edited) 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 November 10, 2011 by wraithdu Link to comment Share on other sites More sharing options...
aris Posted November 10, 2011 Author Share Posted November 10, 2011 i think ill make a script and run it from c#... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now