huntpeck Posted February 6, 2022 Posted February 6, 2022 I'm sure I'm missing something but is there a way to tell if a button has focus? For example if I tab through input fields I enable/disable a button depending on the field. If I tab through all the input fields onto a button I cannot seem to find a way to identify if it has focus. I have included a code snippet I have been testing with. Any help would be appreciated - Thanks. editrec.au3
Nine Posted February 6, 2022 Posted February 6, 2022 $BN_KILLFOCUS/$BN_SETFOCUS (The button must have the BS_NOTIFY style to send this notification code) You could also use ControlGetFocus maybe ? “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
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