Zohar Posted January 23, 2014 Share Posted January 23, 2014 (edited) Hi Assume you have a Handle to a control, for example via using ControlGetFocus(""). You now have a Handle, and you want to get the ClassNN of that control.. What should be used? Thank you Zohar Edited January 23, 2014 by Zohar Link to comment Share on other sites More sharing options...
Solution JohnOne Posted January 23, 2014 Solution Share Posted January 23, 2014 Wrong. ControlGetFocus returns the classname. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted January 23, 2014 Moderators Share Posted January 23, 2014 (edited) Something like this perhaps? #include <WinAPI.au3> $hwnd = WinGetHandle("Untitled", "") ;Notepad MsgBox(0, "", _WinAPI_GetClassName($hwnd)) Edit: Sorry, I misread - you were looking for class name of the control, not the window. Edited January 23, 2014 by JLogan3o13 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Zohar Posted January 23, 2014 Author Share Posted January 23, 2014 Wrong. ControlGetFocus returns the classname. You're right! Sorry, my mistake 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