Modify

Opened 3 years ago

Closed 3 years ago

#2976 closed Bug (Completed)

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

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

Description

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.

Cheers,
RT

Attachments (0)

Change History (2)

comment:1 Changed 3 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 3 years ago by Jpm

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

Added by revision [11227] in version: 3.3.13.20

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

Action
as closed The owner will remain Jpm.
Author


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

 
Note: See TracTickets for help on using tickets.