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 

Spam Numpad Keys

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





PostPosted: Thu Dec 11, 2008 7:10 am    Post subject: Spam Numpad Keys Reply with quote

I am just lost and I've been messing around with this program for a while on and off and I can't seem to get it to do what I want or even do anything. I'm like an Amish 80-year-old trying to log on to the internet with no help. I've searched the forums for some hint at what I might need to do and I don't even understand 95% of the language used.

So please prometheus share the technology of fire with this caveman.

All I need this program for at all is to just send the command of num pad "2" and num pad "3" over and over once a second until I turn it off hopefully by hitting the same key I activated it with. I'm sure this is retarded simple and I'm sure questions like this have come up time and time again so if someone could even point me to a previous post or anywhere I can get this command from I'd be eternally grateful.

[Title edited. Please write descriptive titles for your topics. ~jaco0646]
Back to top
Krogdor



Joined: 18 Apr 2008
Posts: 1381
Location: The Interwebs

PostPosted: Thu Dec 11, 2008 7:17 am    Post subject: Reply with quote

Code:
^s:: ;activated by hitting ^s (ctrl + s)
TimerEnabled := !TimerEnabled ;toggle TimerEnabled between true and false
SetTimer, SendStuff, % TimerEnabled ? "1000" : "Off" ;if TimerEnabled is true, turn the timer on; otherwise, turn it off
Return

SendStuff:
Send {NumPad2}{NumPad3} ;send NumPad2 then NumPad3
Return
Back to top
View user's profile Send private message AIM Address
BoBo²
Guest





PostPosted: Thu Dec 11, 2008 8:04 am    Post subject: Reply with quote

Quote:
I'm sure this is retarded simple and I'm sure questions like this have come up time and time again so if someone could even point me to a previous post or anywhere I can get this command from I'd be eternally grateful
To choose a meaningfull/descriptive subject line will make it easier for noobs (well, you proclaimed to be one of those) to find related posts/threads if getting lost. Think about it ... next time you'll request for help. Wink
Back to top
madmat00



Joined: 10 Jan 2009
Posts: 1

PostPosted: Sat Jan 10, 2009 5:49 pm    Post subject: Altering this code Reply with quote

I am also new to AHK and tried altering the above code as follows but it didn't work. Could anyone tell me what I did wrong?

^NumPad1:: ;activated by hitting ^NumPad1 (ctrl + NumPad1)
TimerEnabled := !TimerEnabled ;toggle TimerEnabled between true and false
SetTimer, SendStuff, % TimerEnabled ? "1000" : "Off" ;if TimerEnabled is true, turn the timer on; otherwise, turn it off
Return

SendStuff:
Send {NumPad*} ;send NumPad*
Return
Back to top
View user's profile Send private message
PurloinedHeart



Joined: 04 Apr 2008
Posts: 374
Location: Canada

PostPosted: Sat Jan 10, 2009 7:40 pm    Post subject: Reply with quote

Please use code tags. And I'd have a look at the
Code:

Send {NumPad*}
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   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