Script/Macro help, almost complete.

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Puvvster
Posts: 1
Joined: 05 Jun 2023, 11:26

Script/Macro help, almost complete.

Post by Puvvster » 05 Jun 2023, 11:33

Hey!

So I'm using the following:

--------------------------------

Code: Select all

toggle = 0
#MaxThreadsPerHotkey 2

F2::
Toggle := !Toggle
While Toggle{
Click
Send q
Send w
Send e
Send r
sleep 1000
}
return
[Mod edit: Fixed [code][/code] tags. Code tags or codebox tags should be used around code, not the whole post. ]

---------------------------------

And what this is missing, I'd like the script to be paused/stopped until I press F2 again to reactivate it.
I want 3 keys to do this, and I want them to be T , Esc/Escape and Enter(non numpad Enter)
Is it possible for these 3 keys to be pressed and they will cancel/stop/pause the script, and upon entering F2 again I can activate the script again?
If possible since I'm only just learning I'd like help to get a working script with these commandlines and I'd be able to build and break down the segments and learn from it that way.

Thank you so much for taking the time to read this and hopefully help.

ananthuthilakan
Posts: 188
Joined: 08 Jul 2019, 05:37
Contact:

Re: Script/Macro help, almost complete.

Post by ananthuthilakan » 05 Jun 2023, 11:57

:) welcome to the forum

Code: Select all

toggle = 0
#MaxThreadsPerHotkey 2

F2::
Toggle := !Toggle
While Toggle{
Click
Send q
Send w
Send e
Send r
sleep 1000
}
return

~Enter::
~Esc::
~T::
Toggle :=0
return


Post Reply

Return to “Ask for Help (v1)”