Need help with Autohotkey loop
#1

Uhh, I looked around the net but couldn't find an example of it. I'm in a need of an autohotkey script that has a loop that goes around all the players. Let's say I need a command "/check [ID]" for 100 players. Can anyone help me out or share the code if he has one?
Reply
#2

Код:
Key::
Loop, 10
{
SendInput t/check 1{enter}
Sleep, 3000
SendInput t/check 2{enter}
}
return
Reply
#3

Quote:
Originally Posted by LukeGFX
Посмотреть сообщение
Код:
Key::
Loop, 10
{
SendInput t/check 1{enter}
Sleep, 3000
SendInput t/check 2{enter}
}
return
That does not work, Try this:
pawn Код:
!k((key))::
loop 10
SendInput t/check 1{enter}
Sleep 4000
SendInput t/check 2{enter}

return
Reply
#4

Yeah, but from the code, it seems that I would have to manually edit the command 100-200 times (for 100-200 players).

I like playing COD SAMP servers, where you have squads and such, and I hate it when I have to spend 5 minutes to manually invite people from my team, so I would like to automate it somehow.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)