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 , 11 years ago
comment:2 by , 11 years ago
| Milestone: | → 3.3.13.20 |
|---|---|
| Owner: | set to |
| Resolution: | → Completed |
| Status: | new → closed |
Added by revision [11227] in version: 3.3.13.20
Note:
See TracTickets
for help on using tickets.

To have inputboxes work in a compiled script, you need to use the pragma directive
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.