Help AutoHotkey HELP.

Status
Not open for further replies.

Chuck

Well-known member
Joined
Jul 4, 2013
Messages
305
Reaction score
2
Location
South Africa.
Hi,

I want a script which types /getmats and then wait 1 minute and press Y, then type /getmats again and wait 1 minute and press Y, and so on. A loop of /getmats, wait 1 minute, press Y and again. Is that possible?
 

Suicide Bomb

Active member
Joined
Jun 22, 2014
Messages
100
Reaction score
1
[tt]~k::
status := !status
if(status)
{
SetTimer, TypeGetmats, 60000
}
else
{
SetTimer, TypeGetmats, off
}
return

TypeGetmats:
Send, t/getmats
Sleep, 60 * 1000
Send, {Y Down}
Send, {Y Up}
return
 

Chuck

Well-known member
Joined
Jul 4, 2013
Messages
305
Reaction score
2
Location
South Africa.
I copy pasted what u wrote but it didnt work, so i made this one.

^5::
SendInput t/getmats {Enter}
sleep 61000
Send {Y Down}
Send {Y Up}
Return

but the problem is ... if i type it multiple times, it wont press the Y. how do i fix that? I want the script go in loop.
 

Suicide Bomb

Active member
Joined
Jun 22, 2014
Messages
100
Reaction score
1
Code:
~^5::
   status := !status
   if(status)
   {
      SetTimer, TypeGetmats, 60000
   }
   else
   {
      SetTimer, TypeGetmats, off
   }
return

TypeGetmats:
   Send, t/getmats
   Sleep, 60000
   Send, {Y Down}
   Send, {Y Up}
return
this?
 
Status
Not open for further replies.
Top