 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Mountie
Joined: 30 Oct 2007 Posts: 13
|
Posted: Fri Jun 20, 2008 1:59 pm Post subject: auto leaving a gui add edit control |
|
|
Is it possible to leave a control once the maxium number of characters
have been input for the control without having to press the tab key?
I have a line in a script as follows:
Gui, Add, Edit, vLocation Limit1
The issue is that the tab key needs to be pressed to leave the control
after the single charcter has been input. In this case, it would be more
desirable to just go to the next field after the single character has been
input.
Thanks. |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6847 Location: Pacific Northwest, US
|
Posted: Fri Jun 20, 2008 3:53 pm Post subject: |
|
|
you could ad a g-label option to the edit, and that subroutine would read the field, and if it is filled with the required number of chars (1 in this case) then set focus on the next control
GuiControlGet will et you get the text
GuiControl will let you move the focus. _________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|