Modify

Opened 11 years ago

Closed 11 years ago

#2976 closed Bug (Completed)

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

Reported by: RTFC Owned by: J-Paul Mesnage
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 by BrewManNH, 11 years ago

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 by J-Paul Mesnage, 11 years ago

Milestone: 3.3.13.20
Owner: set to J-Paul Mesnage
Resolution: Completed
Status: newclosed

Added by revision [11227] in version: 3.3.13.20

Modify Ticket

Action
as closed The owner will remain J-Paul Mesnage.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.