AutoHotkey Community

It is currently May 26th, 2012, 1:59 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Spam Numpad Keys
PostPosted: December 11th, 2008, 8:10 am 
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]


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 11th, 2008, 8:17 am 
Offline

Joined: April 18th, 2008, 7:57 am
Posts: 1390
Location: The Interwebs
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 11th, 2008, 9:04 am 
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:


Report this post
Top
  
Reply with quote  
 Post subject: Altering this code
PostPosted: January 10th, 2009, 6:49 pm 
Offline

Joined: January 10th, 2009, 6:46 pm
Posts: 1
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 10th, 2009, 8:40 pm 
Offline

Joined: April 4th, 2008, 8:15 pm
Posts: 538
Location: Canada
Please use code tags. And I'd have a look at the
Code:
Send {NumPad*}


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, Exabot [Bot], patgenn123, Pietro, poserpro and 9 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