Page 1 of 1

Help with script

Posted: 02 Jul 2018, 20:31
by stox
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

Re: Help with script

Posted: 02 Jul 2018, 20:46
by Spark
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

Re: Help with script

Posted: 02 Jul 2018, 21:02
by stox
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

Re: Help with script

Posted: 02 Jul 2018, 21:38
by Spark
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%
}


Re: Help with script

Posted: 03 Jul 2018, 01:08
by stox
Got it working :D Ty for help