Need help with Autohotkey loop - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Other (
https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (
https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: Need help with Autohotkey loop (
/showthread.php?tid=363185)
Need help with Autohotkey loop -
Makaveli93 - 26.07.2012
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?
Re: Need help with Autohotkey loop -
LukeGFX - 27.07.2012
Код:
Key::
Loop, 10
{
SendInput t/check 1{enter}
Sleep, 3000
SendInput t/check 2{enter}
}
return
Re: Need help with Autohotkey loop -
vexer1234 - 27.07.2012
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
Re: Need help with Autohotkey loop -
Makaveli93 - 29.07.2012
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.