Modify ↓
Opened 20 hours ago
Closed 7 hours ago
#4050 closed Bug (No Bug)
In Version 3.3.16.1, Calling a function with default parameters from HotKeySet fails.
Reported by: | dscotese@… | Owned by: | |
---|---|---|---|
Milestone: | Component: | AutoIt | |
Version: | 3.3.16.1 | Severity: | None |
Keywords: | declaration default argument HotKeySet | Cc: |
Description
Try this code:
HotKeySet("+!i", "AAAB") Func AAAB($bxShow = True) ConsoleWrite("Version " & @AutoItVersion & @CRLF) If $bxShow Then ConsoleWrite("Shift-Alt-i pressed. Use Ctrl-Alt-Del to use keyboard.") EndIf Keyboard(False, "AAAB") EndFunc While True Sleep(5000) AAAB() WEnd Func Keyboard($b, $s) EndFunc
You can see the call to AAAB succeed from the While loop, but if you use ALT-Shift-i, you get an error.
Attachments (1)
Change History (2)
Changed 20 hours ago by dscotese
comment:1 Changed 7 hours ago by Jpm
- Resolution set to No Bug
- Status changed from new to closed
Just read the help
The called function can not be given parameters. They will be ignored.
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.
Note: See
TracTickets for help on using
tickets.
screenshot of error in SciTE.