auto grinding

Ask gaming related questions (AHK v1.1 and older)
AKingDamned
Posts: 3
Joined: 04 Jan 2020, 02:52

auto grinding

04 Jan 2020, 03:27

i am playing a game and i have tried to figure out the script on my own with no success, essentially i need a script to press w for a few seconds, press f, wait a few seconds, then press s for a few seconds, press f, wait a few seconds, repeat, having it work on a specific process so that i can watch youtube, etc while it runs would be ideal, and an on/off key/keys would make it much easier to use. if someone could provide the script that would be incredible but i would be grateful for just the building blocks of the script, thank you all.
User avatar
Chunjee
Posts: 1435
Joined: 18 Apr 2014, 19:05
Contact:

Re: auto grinding

07 Jan 2020, 10:15

untested building blocks:

Code: Select all

AFewSeconds := 6000

loop
{
    SendInput, {w down}
    Sleep AFewSeconds
    SendInput, {w up}
    SendInput, f
    Sleep AFewSeconds
    SendInput, {s down}
    Sleep AFewSeconds
    SendInput, {s up}
    SendInput, f
    Sleep AFewSeconds
}
There are no on/off keys.
AKingDamned
Posts: 3
Joined: 04 Jan 2020, 02:52

Re: auto grinding

11 Jan 2020, 01:51

@Chunjee
thank you kindly. now i just need to find on/off code, and one that makes it work on a specific process and figure out how to splice them together
sai05
Posts: 5
Joined: 19 Jan 2020, 11:26

Re: auto grinding

19 Jan 2020, 12:17

@AKingDamned do you found on of code ?
AKingDamned
Posts: 3
Joined: 04 Jan 2020, 02:52

Re: auto grinding

29 Jan 2020, 02:36

@sai05
nah, couldnt figure it out so i just grinded it out instead

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: drwill and 84 guests