Zohar 3 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 Share this post Link to post Share on other sites
JohnOne 1,603 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. Share this post Link to post Share on other sites
JLogan3o13 1,637 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! Share this post Link to post Share on other sites
Zohar 3 Posted January 23, 2014 Wrong. ControlGetFocus returns the classname. You're right! Sorry, my mistake Share this post Link to post Share on other sites