rmclaug4 Posted March 18, 2008 Share Posted March 18, 2008 What I am looking to do is have hot keys assigned to windows explorer that only activate when text(edit control) is not in focus. I noticed that there are different control class names that show with the windows info tool. Whenever text is selected the control name is edit. Whenever anything else is in focus in an explorer window then it is usually a different control like syslistview32. Is there a method I can use to call the class name of the control in focus so that I can program the hotkeys to differentiate between the controls? Thanks, Ron Link to comment Share on other sites More sharing options...
Zedna Posted March 18, 2008 Share Posted March 18, 2008 HotKeySet("{F9}", "_exit") SplashTextOn("Control Focus Info",'',150,50,850,650) While 1 $a = ControlGetFocus("","") ControlSetText("Control Focus Info", "", "Static1", $a) ;~ TraySetToolTip($a) Sleep(250) WEnd Func _exit() SplashOff() HotKeySet("{F9}") Exit EndFunc Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
rmclaug4 Posted March 19, 2008 Author Share Posted March 19, 2008 This is exactly what I was looking for. Perfect. Thank you!@! 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