Modify ↓
Opened 13 years ago
Closed 13 years ago
#2286 closed Bug (Fixed)
GuiCtrtlGetState without a controlID parameter runs but aborts AutoIt
| Reported by: | anonymous | Owned by: | Jon |
|---|---|---|---|
| Milestone: | 3.3.9.10 | Component: | AutoIt |
| Version: | 3.3.9.4 | Severity: | None |
| Keywords: | Cc: |
Description
GuiCtrtlGetState without a controlID parameter runs but aborts AutoIt, with rc:-1073741819. This was my test script:
#include <GuiConstants.au3>
GUICreate(" My GUI input")
GUICtrlCreateInput("", 10, 35, 300, 20)
$btnTest = GUICtrlCreateButton("Test",30,80)
GUISetState()
$msg = 0
While True
$msg = GUIGetMsg()
Switch $msg
case $GUI_EVENT_CLOSE
Exit
Case $btnTest
GUICtrlGetState()
EndSwitch
WEnd
It aborts when the Test button is clicked.
It is illogical that GuiCtrlGetState be runnable without a parameter, because it must get the state of a control.
The controlID parameter should be required.
Guiness has suggested that I report this bug.
Attachments (0)
Change History (2)
comment:1 by , 13 years ago
comment:2 by , 13 years ago
| Milestone: | → 3.3.9.10 |
|---|---|
| Owner: | set to |
| Resolution: | → Fixed |
| Status: | new → closed |
Fixed by revision [8060] in version: 3.3.9.10
Note:
See TracTickets
for help on using tickets.

I agree that the controlid must mandatory.
It is the only GUICtrl...() function which does not require a controlId.
Certainly a bug since a long time ...