Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

The definitive autofire thread!


  • Please log in to reply
130 replies to this topic
Robby
  • Members
  • 1 posts
  • Last active: Dec 14 2013 07:42 PM
  • Joined: 12 Dec 2013

This certainly looks like a promising thread!

 

I'm new at this so i may be mistaken, but i think that a script that i'd like to see created is still missing from the most excellent list of scripts in the OP. Here's what i'm hoping it would do:

 

* L and R relates to the mouse-buttons *

 

Hold L and R

If L is Pressed = Release L then Re-Hold

If R is Pressed = Release R then Re-Hold

 

 

So it's practically about reversing the held/unheld status of the mouse-buttons. I figured out how to do about the same thing with Oscar Mouse Editor, but i couldn't figure the variable system out so both L and R are released and re-held when either are pressed, rather than them being separate.



sneakysnake128
  • Members
  • 3 posts
  • Last active: Dec 27 2013 07:12 PM
  • Joined: 19 Dec 2013

Hi all,

 

I have no programming experience and all I'm interested in is a simple AHK script that either does turbo "Enter" or presses Enter every 5 seconds. Can someone please make this for me? (consider it a Christmas present to a random stranger)



TTU_TESTsubject0100
  • Members
  • 1 posts
  • Last active: Jun 24 2015 04:03 AM
  • Joined: 21 Jun 2015

I love the click mouse to rapid click. But sometimes it's quite annoying when I need to turn it off. I want something you have to press F8 then you can hold the Lbutton to rapid click. 

 

anyone wanna help?

 

 

-AHK newb



Jstan
  • New members
  • 2 posts
  • Last active: Jul 26 2015 10:32 PM
  • Joined: 22 Jul 2015

I modified this script based on stuff that was already here, it now works for what I need, but an unexpected problem comes up. after using this while playing borderlands for a while, my CPU usage is starting to creep up to around 50% at idle on my intel 2500k running at 4.5ghz.

this should not happen. kills the frame-rate and playability in-game.

help!

 
;hit capslock to change how the left click works

;this basically makes semiautomatics into automatics.

;this line creates a macro

lbutton::

;while capslock is ON and you press mouse button, it will rapidly click, wait, and stop clicking.

while getkeystate("capslock","T") {

    while getkeystate("lbutton","P") {

        sleep 10

        send {click down}

        sleep 10

        send {click up}

}

}

;while caplock is off the mouse should work mostly-normally.

while getkeystate("lbutton","P") {

send {click down}

}

send {click up}

return

;pressing control+u will terminate the app.

;this is a fail-safe for when your mouse stops working.

^u::

exitapp


Xtra
  • Members
  • 954 posts
  • Last active: Jul 23 2016 09:04 PM
  • Joined: 29 Sep 2013

I modified this script based on stuff that was already here, it now works for what I need, but an unexpected problem comes up. after using this while playing borderlands for a while, my CPU usage is starting to creep up to around 50% at idle on my intel 2500k running at 4.5ghz.

this should not happen. kills the frame-rate and playability in-game.

help!

 

Problem Notes :
Using the 2 while loops the lbutton will stop when not held but the outer capslock loop keeps running.(it also has no sleep in that loop)
I would change the capslock loop to an if statement.
The 2nd lbutton loop has no sleep.(it runs even faster than the 1st lbutton loop)
I would remove it and use ~ tilde prefix on the lbutton hotkey for normal use.

;hit capslock to change how the left click works 
;this basically makes semiautomatics into automatics.
 
;this line creates a macro
~lbutton::                                    ;when capslock is off the mouse will work normally.
;while capslock is ON and you press mouse button, it will rapidly click, wait, and stop clicking.
if getkeystate("capslock","T")
{ 
    while getkeystate("lbutton","P")
    {
	sleep 10 
        click down	;Send is not needed
        sleep 10 
        click up 
   } 
}
return
 

;pressing control+u will terminate the app.
;this is a fail-safe for when your mouse stops working. 
^u::
exitapp

HTH



Jstan
  • New members
  • 2 posts
  • Last active: Jul 26 2015 10:32 PM
  • Joined: 22 Jul 2015

Thanks Xtra! It works great now!

but I made this change: add an asterisk before the tilde, so that the script still works if shift/alt/ctrl are used.
example:
*~LButton::


Jonno
  • New members
  • 3 posts
  • Last active: Aug 09 2015 08:51 PM
  • Joined: 09 Aug 2015

Can you help me? im new to AHK. i need one that presses e over and over again after i press alt e or ctrl e or something like that and then cancel it when i press e again or ctrl e or alt e. can you make that for me? Please help me this stuff stil confuses me. haha. Thanks

 



Jordan84792
  • Members
  • 7 posts
  • Last active: Dec 13 2016 05:49 PM
  • Joined: 13 Jul 2015

I need a tad bit of help, this is my script so far.

 

#NoEnv
SendMode InputThenPlay
SetWorkingDir %A_ScriptDir%

;delaytype, delay, press duration, play
SetKeyDelay -1, -1, Play
SetMouseDelay -1, -1, Play

#IfWinActive Garry's Mod
#MaxThreadsBuffer On

NumPad1::

Send, {Enter}
Send, u
Sleep, 100
Send, {!}administrate {Enter}
Return


Numpad2::

Send, {Enter}
Send, u
Sleep, 100
Send, {!}unadministrate {Enter}
Return

 

What I want it to do instead is when I press NumPad1 it does !administrate and then if I press it again it does !unadministrate and cycles through the 2. Is this possible?
 



space
  • Members
  • 520 posts
  • Last active:
  • Joined: 12 Aug 2014
@Jordan84792 you can use a toggle
Toggle1:=1

NumPad1::
Send, {Enter}
Send, u
Sleep, 100
If Toggle
	 Send, {!}administrate {Enter}
else
	 Send, {!}unadministrate {Enter}
Toggle1:=!Toggle1
Return


WobblePotato
  • New members
  • 1 posts
  • Last active: Aug 26 2015 02:40 PM
  • Joined: 25 Aug 2015

How do i make something that does this: hold ` to spam the insert key?



MCBloomy
  • Members
  • 1 posts
  • Last active: Dec 15 2015 04:08 PM
  • Joined: 12 Dec 2015

Good job men! nice script i like you.