<https://www.autoitscript.com/forum/topic/130635-beginner-to-functionshotkeys/#comment-908948>
<http://schema.org/text>
"Kidney,  Welcome to the AutoIt forum.   You are the latest (but you will certainly not be the last) in a very, very long line of people asking about this!   AutoIt does not interrupt running functions except in certain circumstances.  I wrote a tutorial in the Wiki to explain how to do it - take a look and see if it helps.  The tutorial covers several ways to interrupt a function, but your guess about HotKeys is spot on and if you just read the parts about HotKeys you will see how to use them to do what you want.   If it all gets too complicated, then post your script and we will see how we can incorporate a HotKey into it for you.   M23 "
<https://www.autoitscript.com/forum/topic/130635-beginner-to-functionshotkeys/>