need a lil script, noob and bad english :/

Ask gaming related questions (AHK v1.1 and older)
shamroxx
Posts: 2
Joined: 24 Nov 2017, 08:24

need a lil script, noob and bad english :/

24 Nov 2017, 08:33

hey folks,

i search for a lil script . i have the 3 keys 1,2,3 and want them to run automatical with a random delay with 1-3 seconds i want it to start/stop with a Key. its for a little browser game. i found the beginner guide, but with my bad english i dont get it, and i think its very simple for you =)

thank you for lil helpling or advice. otherwise i would take a german or italian link for my lilttle script helpling.
Osprey
Posts: 453
Joined: 18 Nov 2017, 05:50

Re: need a lil script, noob and bad english :/

24 Nov 2017, 16:51

I don't really understand the purpose of the script, but this could be what you want, if I'm reading your request correctly:

Code: Select all

#MaxThreadsPerHotkey 2

$1::
$2::
$3::AutoSendKey()

AutoSendKey()
{
  static

  ThisHotkey := SubStr(A_ThisHotkey, 2, 1)
  auto%ThisHotkey% := % auto%ThisHotkey% = true ? false : true

  While auto%ThisHotkey% = true
  {
    Random, MyOutputVar, 1000, 3000
    Sleep, %MyOutputVar%
    Send, %ThisHotkey%
  }
}

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: Google [Bot] and 80 guests