Click not working

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
stupididiotzzz
Posts: 2
Joined: 06 Mar 2020, 16:25

Click not working

06 Mar 2020, 19:40

I wrote a basic code to make a autofarm for a game but when i start it, it works good, but the clicks dont work sometimes like out of 5 clicks 2 work and 3 dont.

Anyway to fix this?

Heres the the code

i Couldnd figure out how to setup the code block in here but heres the copypaste

Code: Select all

#MaxThreadsPerHotkey 2
h::
Toggle := !Toggle
loop
{
    If not Toggle
        break
		
		
		
Send 3

Send 3

sleep, 500

Mouseclick, left, 542, 282

Mouseclick, left, 542, 282

sleep, 500

send 1

send 1

sleep, 100

Send {lbutton down}

Sleep, 1500

Send {lbutton up}



sleep, 100

Send 3

Send 3

sleep, 500

Mouseclick, left, 542, 282

Mouseclick, left, 542, 282

sleep, 500

send 1

send 1

sleep, 100

Send {lbutton down}

Sleep, 1500

Send {lbutton up}



sleep, 100

Send 3

Send 3

sleep, 500

Mouseclick, left, 542, 282

Mouseclick, left, 542, 282

sleep, 500

send 1

send 1

sleep, 100

Send {lbutton down}

Sleep, 1500

Send {lbutton up}



sleep, 100

Send 3

Send 3

sleep, 500

Mouseclick, left, 542, 282

Mouseclick, left, 542, 282

sleep, 500

send 1

send 1

sleep, 100

Send {lbutton down}

Sleep, 1500

Send {lbutton up}



sleep, 100

Send 3

Send 3

sleep, 500

Mouseclick, left, 542, 282

Mouseclick, left, 542, 282

sleep, 500

send 1

send 1

sleep, 100

Send {lbutton down}

Sleep, 1500

Send {lbutton up}



sleep, 100

Send 3

Send 3

sleep, 500

Mouseclick, left, 542, 282

Mouseclick, left, 542, 282

sleep, 500

send 1

send 1

sleep, 100

Send {lbutton down}

Sleep, 1500

Send {lbutton up}



sleep, 100

Send 3

Send 3

sleep, 500

Mouseclick, left, 542, 282

Mouseclick, left, 542, 282

sleep, 500

send 1

send 1

sleep, 100

Send {lbutton down}

Sleep, 1500

Send {lbutton up}



sleep, 100

Send 3

Send 3

sleep, 500

Mouseclick, left, 542, 282

Mouseclick, left, 542, 282

sleep, 500

send 1

send 1

sleep, 100

Send {lbutton down}

Sleep, 1500

Send {lbutton up}



sleep, 100

Send 3

Send 3

sleep, 500

Mouseclick, left, 542, 282

Mouseclick, left, 542, 282

sleep, 500

send 1

send 1

sleep, 100

Send {lbutton down}

Sleep, 1500

Send {lbutton up}



sleep, 100

Send 3

Send 3

sleep, 500

Mouseclick, left, 542, 282

Mouseclick, left, 542, 282

sleep, 500

send 1

send 1

sleep, 100

Send {lbutton down}

Sleep, 1500

Send {lbutton up}

sleep, 100

send {space}

}

return



esc::exitapp

p::pause
[Mod edit: [code][/code] tags added]
Last edited by stupididiotzzz on 07 Mar 2020, 11:20, edited 1 time in total.
kyuuuri
Posts: 340
Joined: 09 Jan 2016, 19:20

Re: Click not working

06 Mar 2020, 20:13

Please show us your code so we can see what's wrong
stupididiotzzz
Posts: 2
Joined: 06 Mar 2020, 16:25

Re: Click not working

07 Mar 2020, 11:23

I posted the code sorry for being late i just woke up

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: apeironn, madensuyu1, peter_ahk and 350 guests