AutoHotkey Community

It is currently May 27th, 2012, 5:34 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: March 14th, 2010, 3:53 am 
~Numpad5::
Loop
{
Sleep 100
Send, {Numpad5}
if !GetKeyState("Numpad5","P")
break
}
Return


is my script so far. and it works to an extent

what i dont get is when i'm holding down numpad 5 to shoot forward but then when i want to aim down and i press my down key, it stops the autofire.

what do i add to make it so as long as i hold down the numpad 5 key it'll keep going even if i press different keys at the same time?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 14th, 2010, 4:40 am 
Offline

Joined: November 8th, 2009, 2:46 am
Posts: 234
Location: Canberra Oz
Try
Code:
$~Numpad5::


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 14th, 2010, 5:26 am 
ok so i tried that and it didn't work.

ex. i'm holding down numpad 5 and if i press the downarrow it stops the autofire. but if i hold down arrow then hold down numpad 5 it'll shoot down.

any other suggestions?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 14th, 2010, 5:42 am 
Offline

Joined: November 8th, 2009, 2:46 am
Posts: 234
Location: Canberra Oz
I don't know why it doesn't work, works OK on my XP PC.

Could try
Code:
$~Numpad5::
Loop
{
Sleep 100
Send, {Numpad5}
if !GetKeyState("Numpad5","P")
break
}
Sleep 50
If GetKeyState("Numpad5","P")
     Goto $~Numpad5
Return


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 14th, 2010, 5:49 am 
yea weird.. that doesn't work either..

what its doing is, i'm holding down numpad 5 and it starts autofiring and i'm shooting forward, then i press my down button and it stops the shooting.

but.. if i hold down the down button then hold down numpad 5 i'll shoot down.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 14th, 2010, 5:51 am 
the autofiring part works at least :D until i press a different button. lol.


its like when i'm holding down a button in a notepad it'll go 5555555555s(mydownbutton)
what i need it to do is
55555555s555555555
if that makes any sense :/


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 20th, 2010, 7:48 am 
Offline

Joined: February 2nd, 2008, 4:35 am
Posts: 643
Code:
#IfWinActive, <title of game>
*$Numpad5::
  While GetKeyState("Numpad5","P")
  {
    Send {Numpad5}
    Sleep 100
  }
Return
:?:


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: dra, HotkeyStick, migz99, rbrtryn, XstatyK and 60 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group