Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Warhammer Button Spam


  • Please log in to reply
6 replies to this topic
endity
  • Members
  • 3 posts
  • Last active: May 06 2009 03:03 PM
  • Joined: 06 May 2009
I am trying to have my number 3 button spam as fast as possible inside Warhammer. I am currently using this script. Is there a way to make this 10 fold faster than what it is currently spamming?

#ifWinActive Warhammer: Age of Reckoning`, Copyright 2001-2009 Electronic Arts`, Inc.
{
$2::
Loop
{
if not GetKeyState("2", "P")
break
Send 2
sleep 0
}
return
$3::
Loop
{
if not GetKeyState("3", "P")
break
Send 3
sleep 1
}


Thank you

Tseik
  • Members
  • 180 posts
  • Last active: Sep 11 2009 06:04 AM
  • Joined: 09 Oct 2008
This is pretty fast... =D

SetKeyDelay, 0
#ifWinActive Warhammer: Age of Reckoning`, Copyright 2001-2009 Electronic Arts`, Inc.
{
$2::
   Loop  
   {
    if not GetKeyState("2", "P")
      break
     Send 2
    }
return
$3::
   Loop  
   {
    if not GetKeyState("3", "P")
      break
     Send 3
    }

was i wrong, it makes me a very sad panda!

endity
  • Members
  • 3 posts
  • Last active: May 06 2009 03:03 PM
  • Joined: 06 May 2009
Thank you for the fast response. I copied that into my script and got a error.



Line#
001:SetKeyDelay,0
-------->003:{

I imagine that error means that is the problem?

Krogdor
  • Members
  • 1391 posts
  • Last active: Jun 08 2011 05:31 AM
  • Joined: 18 Apr 2008
You are correct, endity... His script should be
SetKeyDelay, 0
#ifWinActive Warhammer: Age of Reckoning`, Copyright 2001-2009 Electronic Arts`, Inc.
$2::
   Loop 
   {
    if not GetKeyState("2", "P")
      break
     Send 2
    }
return
$3::
   Loop 
   {
    if not GetKeyState("3", "P")
      break
     Send 3
    }

However, I would do it this way, and I think it will probably be a bit faster:
SetKeyDelay, 0
#ifWinActive Warhammer: Age of Reckoning`, Copyright 2001-2009 Electronic Arts`, Inc.
$2::
2Down := True
While (2Down = True)
  SendInput, 2
return
$3::
3Down := True
While (3Down = True)
  SendInput, 3
return

$2 Up::2Down := False
$3 Up::3Down := False


Tseik
  • Members
  • 180 posts
  • Last active: Sep 11 2009 06:04 AM
  • Joined: 09 Oct 2008
oh, sry! i forgot }

SetKeyDelay, 0
#ifWinActive Warhammer: Age of Reckoning`, Copyright 2001-2009 Electronic Arts`, Inc.
{
$2::
   Loop  
   {
    if not GetKeyState("2", "P")
      break
     Send 2
    }
return
$3::
   Loop  
   {
    if not GetKeyState("3", "P")
      break
     Send 3
    }
return
}

was i wrong, it makes me a very sad panda!

endity
  • Members
  • 3 posts
  • Last active: May 06 2009 03:03 PM
  • Joined: 06 May 2009
Thank you both for the awesome response and help. I used your second script and it worked very very well for me. Only thing that happens to me in game sometimes it will stick spamming it and sometimes it will not stick and I have to hold the button down for it to go off. When it sticks where I can release and it will continue to spam my char will aimlessly wonder off without me controlling it. Is there a reason for this.

Tseik
  • Members
  • 180 posts
  • Last active: Sep 11 2009 06:04 AM
  • Joined: 09 Oct 2008
Krogdor@
I dont think it needs to be any faster... =D I think mine is too fast already.
But Endity better try them both out.
was i wrong, it makes me a very sad panda!