=sinister= Posted March 13, 2009 Share Posted March 13, 2009 I want to focus on a GUI control when it isn't focused on. So like I want to focus on an input control when the user clicks on something else. I know to focus on the input control you can use this: GUICtrlSetState($MyControl, $GUI_Focus) but putting that in the loop makes the input "Uniputable" (lol). So is there a way to find out if the control is not focused on? That way I could put the line in an if statement. Link to comment Share on other sites More sharing options...
Triblade Posted March 13, 2009 Share Posted March 13, 2009 You could use ControlGetFocus and check it against the controlIDReturns the ClassNameNN of the control that has keyboard focus within a specified window. My active project(s): A-maze-ing generator (generates a maze) My archived project(s): Pong3 (Multi-pinger) 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