AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Autofire Number Pad?

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
galimoth
Guest





PostPosted: Sat Aug 29, 2009 3:14 pm    Post subject: Autofire Number Pad? Reply with quote

I'm trying to make an autofire type function for my number pad keys. It's based off a modified script that I found somewhere on these forums a long while back. It's below.

Code:

Ins::Suspend
Numpad3::
Loop
{
SetKeyDelay 30
Send {Numpad3}
If (GetKeyState("Numpad3","P")=0)
Break
}


For some reason, this script doesn't do anything at all, and I'm not sure why. The script it was modified from used LButton instead of Numpad3 and SetMouseDelay instead of SetKeyDelay. Other than that, they are identical. Any clues as to why the above script wouldn't work? Eventually, I want to map my entire number pad like this, but I need somewhere to start Smile
Back to top
Misc



Joined: 29 Aug 2009
Posts: 15

PostPosted: Sat Aug 29, 2009 3:22 pm    Post subject: Reply with quote

~Numpad3::
Loop
{
Sleep 25
Send, {Numpad3}
if !GetKeyState("Numpad3","P")
break
}
Return

Sleep: The higher the slower the lower the faster
Back to top
View user's profile Send private message
galimoth
Guest





PostPosted: Sat Aug 29, 2009 6:33 pm    Post subject: Reply with quote

Works perfectly, thanks. Very Happy
Back to top
Misc



Joined: 29 Aug 2009
Posts: 15

PostPosted: Mon Aug 31, 2009 6:59 am    Post subject: Reply with quote

No probelm
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group