| View previous topic :: View next topic |
| Author |
Message |
Derogatory Guest
|
Posted: Thu Dec 11, 2008 7:10 am Post subject: Spam Numpad Keys |
|
|
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
|
Posted: Thu Dec 11, 2008 7:17 am Post subject: |
|
|
| 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 |
|
 |
BoBo² Guest
|
Posted: Thu Dec 11, 2008 8:04 am Post subject: |
|
|
| 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.  |
|
| Back to top |
|
 |
madmat00
Joined: 10 Jan 2009 Posts: 1
|
Posted: Sat Jan 10, 2009 5:49 pm Post subject: Altering this code |
|
|
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 |
|
 |
PurloinedHeart
Joined: 04 Apr 2008 Posts: 374 Location: Canada
|
Posted: Sat Jan 10, 2009 7:40 pm Post subject: |
|
|
Please use code tags. And I'd have a look at the
|
|
| Back to top |
|
 |
|