Modify

Opened 9 months ago

Last modified 8 weeks 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 8 months ago by Jpm

  • Owner set to Jpm
  • Status changed from new to assigned

Fix sent to Jon

comment:2 Changed 8 weeks 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.

Add Comment

Modify Ticket

Action
as assigned The owner will remain Jon.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.