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 

Macro for CoD4
Goto page 1, 2  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Alpha I Omega



Joined: 24 Aug 2008
Posts: 13

PostPosted: Sun Aug 24, 2008 11:17 pm    Post subject: Macro for CoD4 Reply with quote

how would i make a script to use in cod 4 to make it so when i run it it will click the left mouse button repeatedly until i unclick the left mouse button?

[Title edited. Please write descriptive titles for your topics. ~jaco0646]
Back to top
View user's profile Send private message
Fry



Joined: 01 Nov 2007
Posts: 689

PostPosted: Sun Aug 24, 2008 11:22 pm    Post subject: Reply with quote

Use the SEARCH button
_________________
check out my site
www.eliteknifesquad.com
Back to top
View user's profile Send private message
BoBo²
Guest





PostPosted: Mon Aug 25, 2008 12:13 am    Post subject: Reply with quote

Quote:
how would i?
Pod.
Back to top
Alpha I Omega



Joined: 24 Aug 2008
Posts: 13

PostPosted: Mon Aug 25, 2008 1:08 am    Post subject: Reply with quote

[Deleted. ~jaco0646]
Back to top
View user's profile Send private message
Guest






PostPosted: Mon Aug 25, 2008 1:22 am    Post subject: Reply with quote

5 secs to search
Code:
http://www.autohotkey.com/forum/topic10928.html&highlight=mouse+repeat
Back to top
how could i?
Guest





PostPosted: Mon Aug 25, 2008 1:57 am    Post subject: Reply with quote

1. Fry offered good advice -- lots of people don't think to search the forums.
2. No one will help you with that attitude. Lots of forum members come here to help people, and in turn, learn more about ahk. Others just like to help out I guess. But unless I am much mistaken, nobody here is being paid to help you. It is from their own free time that they do so.
3. Yours is a common request. You don't even have to have much knowledge of AHK to modify a written script to do what you're asking for. So my advice is...search the forums.

@Bobo: YouPod!?
Back to top
Alpha I Omega



Joined: 24 Aug 2008
Posts: 13

PostPosted: Mon Aug 25, 2008 2:51 am    Post subject: Reply with quote

im sorry that was my brother i told him to make a reply and well i guess he typed that anyway thanks for the link he searched for cod 4 repeat or something also how would i get it to work i tried running the script and then opening cod 4 and it didnt work i am new to autohotkeys sorry
Back to top
View user's profile Send private message
how could i?
Guest





PostPosted: Mon Aug 25, 2008 3:26 am    Post subject: Reply with quote

Code:
~LButton::
Loop
{
    Sleep 20  ; This is the delay between clicks, in milliseconds.
    GetKeyState, LButtonState, LButton, P ; get the state of the Left mouse button
    if LButtonState = U  ; if the user has physically released the button...
        break ; end the loop
    Click
}
return


Put that code in notepad. Under 'save as type', make sure 'all files' is selected, to allow saving as something other than a text file. Save it as scriptname.ahk, scriptname being whatever you want. If you've installed ahk, the file association will already be set, and double-clicking the script will run it. You'll see an icon appear in the system tray.

If you need more info, you can probably find what you need at the autohotkey.com main page. Tutorial, search, etc, etc.
Back to top
BoBo²
Guest





PostPosted: Mon Aug 25, 2008 7:05 am    Post subject: Reply with quote

Quote:
im sorry that was my brother i told him to make a reply
One of my all time favourites! Shocked Next in the list: "Erm, no these are not mine. I buy this condoms 'for a friend'! Laughing
Back to top
Guest






PostPosted: Mon Aug 25, 2008 9:19 pm    Post subject: Reply with quote

BoBo² wrote:
...favourites...this...

...favorites...these...
Back to top
BoBo²
Guest





PostPosted: Mon Aug 25, 2008 9:37 pm    Post subject: Reply with quote

I know my English isn't that good, but English is English and American English is just an idiom of it, so what? Wink
[favourite] Cool
Back to top
Krogdor



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

PostPosted: Mon Aug 25, 2008 11:55 pm    Post subject: Reply with quote

Anonymous wrote:
BoBo² wrote:
...favourites...this...

...favorites...these...


Favourites is actually probably more correct in an international setting since American English is a derivative of British English... Although I suppose American English is more common on this forum. Anyway, it's certainly not something that needs correcting Razz
_________________
PlayAHK! Try it out Very Happy
Back to top
View user's profile Send private message AIM Address
Guest






PostPosted: Tue Aug 26, 2008 2:19 am    Post subject: Reply with quote

Krogdor wrote:
Anyway, it's certainly not something that needs correcting Razz

...yes it is...plus I corrected the "this"...but no matter what my "English" is always gonna be correct for me...BE is just outdated crap...do you know they spell (or spelled) jail gaol?...freaking "goal" to mean jail...
Back to top
[VxE]



Joined: 07 Oct 2006
Posts: 1496

PostPosted: Tue Aug 26, 2008 5:22 am    Post subject: Reply with quote

Guest wrote:
...no matter what my "English" is always gonna be correct for me...

And yet, the online community has not seen an upsurge in popularity of linguistic troglodytes Rolling Eyes

Grammar Nazis would find beating a dead cat to be time more profitably spent.
_________________
My Home Thread
More Common Answers: [1]. It's in the FAQ [2]. Ternary ( a ? b : c ) guide [3]. Post code inside [code][/code] tags !
Back to top
View user's profile Send private message
Slanter



Joined: 28 May 2008
Posts: 397
Location: Minnesota, USA

PostPosted: Tue Aug 26, 2008 5:47 am    Post subject: Reply with quote

Anonymous wrote:
BE is just outdated crap...
Really? Has anyone informed the british?
_________________
Unless otherwise stated, all code is untested

(\__/) This is Bunny.
(='.'=) Cut, copy, and paste bunny onto your sig.
(")_(") Help Bunny gain World Domination.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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