AutoHotkey Community

It is currently May 27th, 2012, 11:42 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Twisting ( Warhammer)
PostPosted: May 9th, 2010, 11:18 am 
Offline

Joined: May 9th, 2010, 11:09 am
Posts: 1
Hi, I've been looking to create a script to press the same button again and again infinite times.
So I found the AutoHotkey program, fine, and then gone to the guide but still I couldn't understand how to create it one script such as described, even the simple ones I dont understood very well, its Harder because English is not my First Language too, and I've been thinking, twisting will be only thing I will use AutoHotkey, so I should look for some help.

So I ask.
Could anyone please post a script to me copy and paste and then make the script?
Because twisting in warhammer makes your finger bleed hehe.

Details:
Im looking for one that press F6 constantly infinite times, no timer needed, just need that F6 be pressed constantly.

OBS: I dont know if you guys can do it, if not this topic can be deleted, sorry if I broke any rules or something like


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 9th, 2010, 8:46 pm 
Offline

Joined: April 18th, 2008, 7:57 am
Posts: 1390
Location: The Interwebs
Code:
Loop,
  Send, {F6}

Esc::ExitApp

That will do it for you, and "Esc" can replaced by any key of your choosing (you need some way to exit the script)

Just copy-paste this into a plain txt file or whatever, and rename the extension to ".ahk" and double click to run. If you want to have a hotkey to both start and stop the looping, so you have better control, use this:

Code:
$F6::
Sending := !Sending
SetTimer, SendF6, % Sending ? "1" : "Off"
Return

SendF6:
Send, {F6}
Return


Press F6 once to start it, again to stop.

Edit: Updated to reflect MasterFocus's change.


Last edited by Krogdor on May 9th, 2010, 8:53 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 9th, 2010, 8:51 pm 
Offline

Joined: April 8th, 2009, 8:23 pm
Posts: 3036
Location: Rio de Janeiro - RJ - Brasil
Krogdor's second example is incorrect.
Should be:
Code:
$F6:: ; using $ modifier
; etc.

_________________
"Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried.
"
Image
Antonio França
My stuff: Google Profile


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 9th, 2010, 8:52 pm 
Offline

Joined: April 18th, 2008, 7:57 am
Posts: 1390
Location: The Interwebs
You're right, sorry. I always have #UseHook in my scripts so I forget to include it in times like these. Thanks for the correction.


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: MSN [Bot] and 19 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