Opened 11 years ago

Closed 10 years ago

#2286 closed Bug (Fixed)

GuiCtrtlGetState without a controlID parameter runs but aborts AutoIt

Reported by: anonymous Owned by: Jon
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Cc:


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)

 $msg = 0
 While True
   $msg = GUIGetMsg()
    Switch $msg
      case $GUI_EVENT_CLOSE
      Case $btnTest

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 Changed 11 years ago by Jpm

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 ...

comment:2 Changed 10 years ago by Jon

  • Milestone set to
  • Owner set to Jon
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed by revision [8060] in version:

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The owner will remain Jon.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.