Modify ↓
#252 closed Bug (Fixed)
Control focus changing when window loses/regains focus
| Reported by: | Owned by: | Jon | |
|---|---|---|---|
| Milestone: | 3.2.13.0 | Component: | AutoIt |
| Version: | 3.2.11.10 | Severity: | None |
| Keywords: | focus change | Cc: |
Description
This bug appears to have been introduced in 3.2.11.10.
Steps to reproduce:
- Run script, notice the ToolTip which constantly displays the focused window control.
- Manually place focus in the edit control (click the mouse in the field).
- Alt+Tab, or otherwise change the system focus to another window.
- Return to the script's window.
- The window's focus has changed to the label (Static1). With AutoIt 3.2.11.9, the focus correctly stays on the Edit control (Edit1).
Global Const $WS_CHILD = 0x40000000
Global Const $GUI_EVENT_CLOSE = -3
$guiP = GUICreate(@AutoItVersion, 200, 200)
GUICtrlCreateLabel('Label (Static1)', 0, 0, 200, 20)
GUISetState()
$guiC = GUICreate('', 200, 180, 0, 20, $WS_CHILD, Default, $guiP)
GUICtrlCreateEdit('Edit (Edit1)', 0, 0, 200, 180)
GUISetState()
While 1
ToolTip(ControlGetFocus($guiP))
$gm = GUIGetMsg()
If $gm = $GUI_EVENT_CLOSE Then ExitLoop
WEnd
Attachments (0)
Change History (3)
comment:1 by , 18 years ago
comment:2 by , 18 years ago
| Milestone: | → 3.2.11.13 |
|---|---|
| Owner: | set to |
| Resolution: | → Fixed |
| Status: | new → closed |
Fixed in version: 3.2.11.13
Note:
See TracTickets
for help on using tickets.

I found the revision it happened in (3297) which was when I fixed the new accelerator code. Not sure what is causing it though yet...