NEED HELP WITH A SMALL AHK BOT

Ask gaming related questions (AHK v1.1 and older)
momin baig
Posts: 3
Joined: 29 Dec 2017, 20:29

NEED HELP WITH A SMALL AHK BOT

29 Dec 2017, 20:38

I just needed help with a script, been trying to figure out on how to make one but couldnt.

i need a simple left mouse click, then press 2 on keyboard then 7 on keyboard and then spacebar. Wait for 15s then again do the same thing from the beginning.

Need everything to happen all by itself automatically.

THANK YOU VERY MUCH TO ANYONE WHO COULD DO IT, MUCH APPRECIATED
TygerByte
Posts: 96
Joined: 12 Aug 2016, 05:22

Re: NEED HELP WITH A SMALL AHK BOT

29 Dec 2017, 21:12

Here's a thread on the old forum that basically has everything you need. Read through it and put the actions you want in it. https://autohotkey.com/board/topic/6457 ... re-thread/ It shows multiple examples where you can pick what you want.
momin baig
Posts: 3
Joined: 29 Dec 2017, 20:29

Re: NEED HELP WITH A SMALL AHK BOT

29 Dec 2017, 21:18

TygerByte wrote:Here's a thread on the old forum that basically has everything you need. Read through it and put the actions you want in it. https://autohotkey.com/board/topic/6457 ... re-thread/ It shows multiple examples where you can pick what you want.
if you could please type it for me. cant figure how to order it up.
Mightykiller
Posts: 57
Joined: 09 Oct 2017, 13:34

Re: NEED HELP WITH A SMALL AHK BOT

01 Jan 2018, 11:12

This is what u need use F1 to trigger the script and F2 to pause it, loop, 1000 will make it repeat 1000 times u can change it to how much u want it to work, and u can change F1/F2 keys to what ever u want.

Code: Select all

F1::
loop, 1000
{
MouseClick, left
sleep 100
SendInput, 2
sleep 100
SendInput, 7
sleep 100
SendInput {space}

}
return

F2::
Reload
return
momin baig
Posts: 3
Joined: 29 Dec 2017, 20:29

Re: NEED HELP WITH A SMALL AHK BOT

02 Jan 2018, 11:39

i need it to repeat after 15 seconds, how do i change that?
cocobanana
Posts: 19
Joined: 31 Oct 2017, 05:43

Re: NEED HELP WITH A SMALL AHK BOT

02 Jan 2018, 14:18

F1::
SetTimer, F1, Off
loop, 1000
{
MouseClick, left
sleep 100
SendInput, 2
sleep 100
SendInput, 7
sleep 100
SendInput {space}

}
SetTimer, F1, 15000
return

F2::
Reload
return

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 78 guests