Help with script

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
stox
Posts: 5
Joined: 02 Jul 2018, 20:25

Help with script

02 Jul 2018, 20:31

Hi, my script doesnt seem to work at all? I think it looks good, but it does absolutely nothing. Not experienced with this:
^j::
CoordMode, Pixel, Screen
Click, 1115, 264
Send Y
Click, 694, 321
Click, 470, 841

return
PS: please dont bully me
Spark
Posts: 80
Joined: 04 Jan 2017, 02:22

Re: Help with script

02 Jul 2018, 20:46

Hello,
try to add Sleep

Code: Select all

^j::
CoordMode, Pixel, Screen
sleep, 500	; delay 500 milisecond
Click, 1115, 264
sleep, 500	; delay 500 milisecond
Send Y
sleep, 500	; delay 500 milisecond
Click, 694, 321
sleep, 500	; delay 500 milisecond
Click, 470, 841
return
Hope that helps
stox
Posts: 5
Joined: 02 Jul 2018, 20:25

Re: Help with script

02 Jul 2018, 21:02

Hey, I didnt know that "^j" meant CTRL+J, but thanks. Got another major problem though, "Click" doesnt work... It just hovers the coordinates without clicking
Spark
Posts: 80
Joined: 04 Jan 2017, 02:22

Re: Help with script

02 Jul 2018, 21:38

how about this

Code: Select all

CoordMode, Pixel, Screen
delay := 500

^j::
ClickF(1115,264)
Send, Y
ClickF(694,321)
ClickF(470,841)
return


ClickF(x,y){
	global
MouseMove, %x%, %y%
Send, {LButton Down}
Sleep, 75
Send, {LButton Up}
Sleep, %delay%
}

stox
Posts: 5
Joined: 02 Jul 2018, 20:25

Re: Help with script

03 Jul 2018, 01:08

Got it working :D Ty for help

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: doodles333, Frogrammer, mikeyww and 252 guests