Modify ↓
Opened 3 years ago
Last modified 2 years ago
#3962 assigned Bug
Not able to interrupt script with hotkey on latest version v3.3.16.1
| Reported by: | anonymous | Owned by: | Jon |
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | 3.3.16.1 | Severity: | None |
| Keywords: | interrupt hotkey | Cc: |
Description
On v3.3.16.1 on a code like this you're unable to interrupt a script with a hotkey:
HotKeySet("{ESC}", "Stop")
MouseClick("left", 300, 300)
MouseClick("left", 600, 300)
MouseClick("left", 600, 600)
MouseClick("left", 300, 600)
MouseClick("left", 300, 300)
MouseClick("left", 600, 300)
MouseClick("left", 600, 600)
MouseClick("left", 300, 600)
Func Stop()
Exit
EndFunc
On the other hand a script like this will allow the script to be interrupted during the sleeps:
HotKeySet("{ESC}", "Stop")
MouseClick("left", 300, 300)
Sleep(100)
MouseClick("left", 600, 300)
Sleep(100)
MouseClick("left", 600, 600)
Sleep(100)
MouseClick("left", 300, 600)
Sleep(100)
MouseClick("left", 300, 300)
Sleep(100)
MouseClick("left", 600, 300)
Sleep(100)
MouseClick("left", 600, 600)
Sleep(100)
MouseClick("left", 300, 600)
Func Stop()
Exit
EndFunc
By rolling back to version v3.3.14.5 I'm able to once again interrupt the first script with a hotkey.
Here's the original thread where the matter was discussed:
https://www.autoitscript.com/forum/topic/210479-cant-interrupt-script-on-win11/
Attachments (0)
Change History (2)
comment:1 by , 3 years ago
| Owner: | set to |
|---|---|
| Status: | new → assigned |
comment:2 by , 2 years ago
| Owner: | changed from to |
|---|
Note:
See TracTickets
for help on using tickets.

Fix sent to Jon