Opened 9 years ago

Closed 9 years ago

#2976 closed Bug (Completed)

compiled Execute(inputbox...) fails on bad argument error

Reported by: RTFC Owned by: Jpm
Milestone: Component: AutoIt
Version: Severity: None
Keywords: inputbox execute Cc:


Hi devs,

$temp=Execute("Inputbox(0,'put something here')") MsgBox(0,@error,@extended)

Works fine as .au3 interpreted in Scite, but generates @error=3 (bad arguments) after compilation.

User kaisies reported this in my CodeCrypter thread, ca. post 103.


Attachments (0)

Change History (2)

comment:1 Changed 9 years ago by BrewManNH

To have inputboxes work in a compiled script, you need to use the pragma directive

#pragma compile(inputboxres, true)

The default setting for this is false, so that your compiled execs will be smaller if you're not using an InputBox. This would be more of a documentation issue rather than a bug, unless the default setting was supposed to be true and it's set incorrectly.

comment:2 Changed 9 years ago by Jpm

  • Milestone set to
  • Owner set to Jpm
  • Resolution set to Completed
  • Status changed from new to closed

Added by revision [11227] 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 Jpm.

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

Note: See TracTickets for help on using tickets.