I have a gui that has several edit boxes and buttons. Each edit box has a "ok" button next to it. How can I have it so when ever enter is pressed, the ok button next to the edit box is pressed. I can't use "Default" as there is more than one button/editbox.
OR
Have it so when enter is pressed the corresponding subroutine is run depending on which editbox has the cursor in it or focus. Let me know if you need a code example but this seems pretty straight forward.
Enter key to press button based on which editbox has focus Topic is solved
- evillemonkey
- Posts: 51
- Joined: 12 Nov 2015, 09:57
- V for Vendetta
- Posts: 105
- Joined: 29 Sep 2016, 11:33
Re: Enter key to press button based on which editbox has focus Topic is solved
(Please, Mister Angry Great Admin "nnnik", approve this New Post of mine, please? Haha!)
ListView Control Editable - Cell Editing (Table - Grid - Spreadsheet)
VarWrite \ VarRead - A little bit faster alternative to IniWrite \ IniRead
ListView Control Editable - Cell Editing (Table - Grid - Spreadsheet)
VarWrite \ VarRead - A little bit faster alternative to IniWrite \ IniRead
More
- evillemonkey
- Posts: 51
- Joined: 12 Nov 2015, 09:57
Re: Enter key to press button based on which editbox has focus
Will start digesting now, thank you.
- evillemonkey
- Posts: 51
- Joined: 12 Nov 2015, 09:57
Re: Enter key to press button based on which editbox has focus
Works like a charm. I modified it of course to fit my needs
Code: Select all
;removed as it was causing issues with my hotkeys and I didn't want to spend a lot of time taking existing things apart
#IfWinActive
#IfWinActive ahk_group AllScriptGuiWindows
;added so NumPadEnter can also be used
Enter::
NumPadEnter::
- V for Vendetta
- Posts: 105
- Joined: 29 Sep 2016, 11:33
Re: Enter key to press button based on which editbox has focus
Wow, I totally forgot "NumPadEnter"! Thanks!evillemonkey wrote:Works like a charm. I modified it of course to fit my needsCode: Select all
;removed as it was causing issues with my hotkeys and I didn't want to spend a lot of time taking existing things apart #IfWinActive #IfWinActive ahk_group AllScriptGuiWindows ;added so NumPadEnter can also be used Enter:: NumPadEnter::
(Please, Mister Angry Great Admin "nnnik", approve this New Post of mine, please? Haha!)
ListView Control Editable - Cell Editing (Table - Grid - Spreadsheet)
VarWrite \ VarRead - A little bit faster alternative to IniWrite \ IniRead
ListView Control Editable - Cell Editing (Table - Grid - Spreadsheet)
VarWrite \ VarRead - A little bit faster alternative to IniWrite \ IniRead
More
Who is online
Users browsing this forum: Marium0505 and 337 guests