Augmenting Chat Loop

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
LarsArvid
Posts: 1
Joined: 12 Sep 2019, 11:14

Augmenting Chat Loop

12 Sep 2019, 11:28

Code: Select all

So my friends and I have a joke where in our whatsapp group we would randomly send a bacteria emoji and then two, then four, eight... (double the previous ammount each time)
and i wanted to make a script to do this really fast and without stoping, but I dont know how to do it so each time send double the ammount, this is what i have at the momment

$F1::
{
Loop
	{
	Send %Clipboard% ; inbuild variable, sends what you have copied
	Sleep, 100
	Send, {Enter}
	Sleep, 200
	} 
}
	 
!F1:: ; Alt + F1
{
ExitApp ; exits the script
}
ilhom
Posts: 52
Joined: 19 Aug 2019, 17:58

Re: Augmenting Chat Loop

12 Sep 2019, 12:43

Not exactly ideal but this should work.

Code: Select all

$F1::
{
	RepeatCount := 1
	Loop
	{
		Loop, %RepeatCount%
		{
			SendInput  %Clipboard% ; inbuild variable, sends what you have copied
			Sleep, 100
			SendInput, {Enter}
			Sleep, 200
		}
		RepeatCount *= 2
	}
}
	 
!F1:: ; Alt + F1
{
ExitApp ; exits the script
}

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot], RandomBoy, Rohwedder and 399 guests