If the Ctrl+C doesn't work, then you have two options:
1) Repost on Gitter and let the developers enlighten us as to why it
doesn't work and how to fix it.
While you're waiting for an answer, you can try running a trace to see
how AutoKey is processing your script. It might give you some insight
into why it doesn't work or how to fix it. See
https://github.com/autokey/autokey-python2/wiki/Problem-Reporting-Guide
for how to do that.
2) Write a second script that toggles an AutoKey global variable between
on/off, 1/0, etc. and assign it to a hotkey.
Modify the original script to set the global variable to "on" before
entering its loop. While in the loop, read that AutoKey global variable
and break out of the loop when it sees it is set to "off".
This way you have your own hotkey that functions roughly the same as
using Ctrl+C would, but just for your script.
BTW, when talking to the developers, we call these "scripts", not
"macros". The term "macro" is reserved for several features like adding
"<cursor>" within a phrase text to reposition the text cursor after the
phrase has been expanded.
Joe
On 6/4/20 4:34 AM, jack horsfield wrote:
> The ctrl+c must be in the same window as the script is running. Dunno
> if that helps.
>
> I suppose you could try putting a very long sleep in there...a second
> or two, just to see if that lets the ctrl+c get in there. If yes, trim
> the king sleep as much as possible
>
> Jack
> On 3 Jun 2020, at 11:48, Tibia REC <
migue...@gmail.com
>>> <
https://groups.google.com/d/msgid/autokey-users/3b300f17-e239-4f83-b67c-960cf21ecda1%40googlegroups.com?utm_medium=email&utm_source=footer>.
>>
>> --
>> You received this message because you are subscribed to the
>> Google Groups "autokey-users" group.
>> To unsubscribe from this group and stop receiving emails from
>> it, send an email to
autoke...@googlegroups.com <javascript:>.
>> To view this discussion on the web visit
>>
https://groups.google.com/d/msgid/autokey-users/d356a7ac-841e-4b28-a9a6-b811d47b9587%40googlegroups.com
>> <
https://groups.google.com/d/msgid/autokey-users/d356a7ac-841e-4b28-a9a6-b811d47b9587%40googlegroups.com?utm_medium=email&utm_source=footer>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "autokey-users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
autokey-user...@googlegroups.com
> <mailto:
autokey-user...@googlegroups.com>.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/autokey-users/146cc172-8a89-4a7f-8ffc-b845857e6a75%40gmail.com
> <
https://groups.google.com/d/msgid/autokey-users/146cc172-8a89-4a7f-8ffc-b845857e6a75%40gmail.com?utm_medium=email&utm_source=footer>.