Modify ↓
Opened 2 years ago
Last modified 21 months 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 Changed 2 years ago by Jpm
- Owner set to Jpm
- Status changed from new to assigned
comment:2 Changed 21 months ago by Jpm
- Owner changed from Jpm to Jon
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.

Fix sent to Jon