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
Gabry
  • Guests
  • Last active:
  • Joined: --
Please...any help??

Frankie
  • Members
  • 2930 posts
  • Last active: Feb 05 2015 02:49 PM
  • Joined: 02 Nov 2008

Can you write the entire script please?

No.

Please...any help??

Sure. Read this. If you don't get it the first time press the {Home} key and read it again. You will of course need a hotkey as well. That is,
RButton::Send, <Some Send Action>
or
RButton::
Send, <Send Action 1>
Send <Something else>
return


Feel free to post back with your working script. Someone could learn from it.
aboutscriptappsscripts
Request Video Tutorials Here or View Current Tutorials on YouTube
Any code ⇈ above ⇈ requires AutoHotkey_L to run

  • Guests
  • Last active:
  • Joined: --
@nimda: perhaps add link to the game faq? (at the beginning of your first post add something like a warning it doesn't work for all games)
<!-- m -->http://www.autohotke... ... leshooting<!-- m -->
people will ask for "how to spam key" in ask for help, people link to this thread, and often the next post is "it will work in notepad but not in my game"

valtis
  • Members
  • 1 posts
  • Last active: Aug 07 2011 11:01 AM
  • Joined: 07 Aug 2011
Im just gonna leave this here:
;här är alla knappar som skickar ut en sub och sedan när den returnaras så går den dir till slutet via en GOTO
Ins::Suspend

LButton::
Gosub, Vanster
GOTO, slut

PgUp::
Gosub, Plus
GOTO, slut

PgDn::
Gosub, Minus
GOTO, slut

^PgUp::
Gosub, Splus
GOTO, slut

^PgDn::
Gosub, SMinus
Goto, slut

End::
Gosub, Visa
GOTO, slut

Home::
Gosub, 40
GOTO, slut

Del::
Gosub, vaxla
GOTO, slut

;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Här under händer sker under måntro!!
;Här så sker själva knapptryckningarna
Vanster:
SetMouseDelay %home%
;auto
if vaxla = 0
{
loop
{
if (GetKeyState("LButton","P")=0)
break
click
}
}
;"variable" burst
else if vaxla = 1
{
loop
{
if (GetKeyState("LButton","P")=0)
break
;clicken ska kunna styras med variabler
loop, %ganger%
click
;samma med sleepen
sleep %sova%
}
}
return


;Här så ökas hastigheten mellan varje klick med 10ms
Plus:
if vaxla = 0
{
home := home + 10
}
if vaxla = 1
{
ganger := ganger + 1
}
return


;Här så sänks hastigheten mellan varje klick med 10ms
Minus:
if vaxla = 0
{
home := home - 10
if home = 0
{
home = 10
}
}
if vaxla = 1
{
ganger := ganger - 1
if ganger = 0
{
ganger = 1
}
} 
return


Visa:
;Här bestämms hurvida man vill visa farten antingen genom chatten (bra i spel) 
;eller i en pop up (när man inte spelar Duh!) Kom ihåg att ändra chat knappen för olika spel
if (GetKeyState("ScrollLock","T")=0)
{
if vaxla = 0
{
msgbox Auto, hastighet:  %home%
}
else if vaxla = 1
{
msgbox  Burst, Bursts: %ganger% `nTid Mellan Bursts: %sova% `nms Hastighet: %home%
}
}
else
{
;chat-knapp under och konfirmations-knapp
;Tabort "{ENTER}" sektionen om du inte vill att den ska skicka!!
;sleepen behövs för att spel är segare än AHK och därför reggar den inte alla knapptryckningar!
if vaxla = 0
{
sendinput t
sleep 10
Sendinput Auto,
sleep 10
sendinput Sp:%home%
sleep 10
sendinput {Enter}
}
if vaxla
{
sendinput t
sleep 10
Sendinput Burst,
sleep 10
sendinput Ti:%ganger%, 
sleep 10
Sendinput Sp:%home%,
sleep 10
Sendinput Sl:%sova%,
sleep 10
sendinput {Enter}
}
}
return


;här så sätts "default" värdena in vilket är full-auto med 40ms mellan varje skott och 3burst med 300 ms vila
40:
home = 40
vaxla = 0
ganger = 3
sova = 300
return


;här så väljs skjutläge med antingen 1/0 om något e fel så sätts 0 in automatiskt
vaxla:
if vaxla = 0
{
vaxla = 1
}
else
{
vaxla = 0
}
return

;ökar sovtiden med 0,1 s
Splus:
sova := sova + 100
return

;minskar sovtiden med 0,1 s
SMinus:
sova := sova - 100
if sova = 0
{
sova = 100
}
return

slut:
return

Sorry for the comments are in swedish mixed with english, same with the varaibles :)

Still its functioning and it cantains both Burst and Auto fire and all is made so that you can change it while using it, enjoy and plz tell me what to improve. It is always fun to get better.

ps. it is quite rough still made it really fast for MW2 when i played last night :p

securitywyrm
  • Members
  • 4 posts
  • Last active: Oct 01 2011 10:03 AM
  • Joined: 20 May 2011
Here's the code I eventually came up with after seeing your examples. I hold F8 and it spams enter and click to get through a daily turn-in quest in a game. The trick was simulating the down and up stroke of the enter key to get the game to recognize it.

$F8::
   Loop  
   {
    if not GetKeyState("F8", "P")
      break
     Send, {enter down}
   Sleep 50
     Send, {enter up}
    
        Click
        Sleep 50 ;  milliseconds
    }

return


nimda
  • Members
  • 4368 posts
  • Last active: Aug 09 2015 02:36 AM
  • Joined: 26 Dec 2010
Gald I could help. I would like to show you one improvement: your "loop{...if not getkeystate...break" can be expressed as "While GetKeyState(){"

securitywyrm
  • Members
  • 4 posts
  • Last active: Oct 01 2011 10:03 AM
  • Joined: 20 May 2011

Gald I could help. I would like to show you one improvement: your "loop{...if not getkeystate...break" can be expressed as "While GetKeyState(){"


I have no clue what that means. I'm not really 'coding' so much as 'arranging the pieces together and hoping they work.'

nimda
  • Members
  • 4368 posts
  • Last active: Aug 09 2015 02:36 AM
  • Joined: 26 Dec 2010

I have no clue what that means.

It means your code is equivalent to this:
$F8::
   While GetKeyState("F8", "P"){
     Send, {enter down}
     Sleep 50
     Send, {enter up}{Click}
     Sleep 50 ;  milliseconds
}
return


  • Guests
  • Last active:
  • Joined: --
Help me understand why CLICK doesn't work
......I've tried using "SEND {click}" too,
....................I've put random TOOLTIP to test if getkeystate works, it does
Just CLICK that isnt working


~$LButton::
    While GetKeyState("LButton","P"){
       random, xxx, 1, 5000
tooltip %xxx% 
 Click
        Sleep 500  ;  milliseconds
    }
return


nimda
  • Members
  • 4368 posts
  • Last active: Aug 09 2015 02:36 AM
  • Joined: 26 Dec 2010
What doesn't it work in?

  • Guests
  • Last active:
  • Joined: --
nowhere, i was testing it on desktop, lbutton simply does not click when script is running yet tooltip generates numbers

nimda
  • Members
  • 4368 posts
  • Last active: Aug 09 2015 02:36 AM
  • Joined: 26 Dec 2010
Well your posted script works for me. It just won't open anything because my double-click time is < 500ms

  • Guests
  • Last active:
  • Joined: --
any suggestions as to what could be interfearing then? i understand the script is function because i took it of your thread :) but it wouldnt run on my end...

i dont have antivirus running ...
win7 64bit , ahk_l
tried compiled.exe version of it..

ran .ahk straight from autohotkey, no scite or other editors ....

  • Guests
  • Last active:
  • Joined: --
AH! Found might have found the culprit, I'm running Just Gesture, gesturing program, I've shut it off and script came to life ! Thanks for the quicky response

Frankie
  • Members
  • 2930 posts
  • Last active: Feb 05 2015 02:49 PM
  • Joined: 02 Nov 2008
FYI, I short linked this thread and I have it memorized :D

Here's the link: http://bit.ly/gamesaretoohard
aboutscriptappsscripts
Request Video Tutorials Here or View Current Tutorials on YouTube
Any code ⇈ above ⇈ requires AutoHotkey_L to run