| View previous topic :: View next topic |
| Author |
Message |
Alpha I Omega
Joined: 24 Aug 2008 Posts: 13
|
Posted: Sun Aug 24, 2008 11:17 pm Post subject: Macro for CoD4 |
|
|
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 |
|
 |
Fry
Joined: 01 Nov 2007 Posts: 689
|
Posted: Sun Aug 24, 2008 11:22 pm Post subject: |
|
|
Use the SEARCH button _________________ check out my site
www.eliteknifesquad.com |
|
| Back to top |
|
 |
BoBo² Guest
|
Posted: Mon Aug 25, 2008 12:13 am Post subject: |
|
|
| Pod. |
|
| Back to top |
|
 |
Alpha I Omega
Joined: 24 Aug 2008 Posts: 13
|
Posted: Mon Aug 25, 2008 1:08 am Post subject: |
|
|
| [Deleted. ~jaco0646] |
|
| Back to top |
|
 |
Guest
|
Posted: Mon Aug 25, 2008 1:22 am Post subject: |
|
|
5 secs to search
| Code: | | http://www.autohotkey.com/forum/topic10928.html&highlight=mouse+repeat |
|
|
| Back to top |
|
 |
how could i? Guest
|
Posted: Mon Aug 25, 2008 1:57 am Post subject: |
|
|
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
|
Posted: Mon Aug 25, 2008 2:51 am Post subject: |
|
|
| 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 |
|
 |
how could i? Guest
|
Posted: Mon Aug 25, 2008 3:26 am Post subject: |
|
|
| 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
|
Posted: Mon Aug 25, 2008 7:05 am Post subject: |
|
|
| Quote: | | im sorry that was my brother i told him to make a reply | One of my all time favourites! Next in the list: "Erm, no these are not mine. I buy this condoms 'for a friend'!  |
|
| Back to top |
|
 |
Guest
|
Posted: Mon Aug 25, 2008 9:19 pm Post subject: |
|
|
| BoBo² wrote: | | ...favourites...this... |
...favorites...these... |
|
| Back to top |
|
 |
BoBo² Guest
|
Posted: Mon Aug 25, 2008 9:37 pm Post subject: |
|
|
I know my English isn't that good, but English is English and American English is just an idiom of it, so what?
[favourite]  |
|
| Back to top |
|
 |
Krogdor
Joined: 18 Apr 2008 Posts: 1145 Location: The Interwebs
|
Posted: Mon Aug 25, 2008 11:55 pm Post subject: |
|
|
| 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  _________________ PlayAHK! Try it out  |
|
| Back to top |
|
 |
Guest
|
Posted: Tue Aug 26, 2008 2:19 am Post subject: |
|
|
| Krogdor wrote: | Anyway, it's certainly not something that needs correcting  |
...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
|
Posted: Tue Aug 26, 2008 5:22 am Post subject: |
|
|
| 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
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 |
|
 |
Slanter
Joined: 28 May 2008 Posts: 397 Location: Minnesota, USA
|
Posted: Tue Aug 26, 2008 5:47 am Post subject: |
|
|
| 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 |
|
 |
|