I am trying to learn making a simple AHK script but i cant get it to work. as you can see it is a really badly written script and probably a very dumb mistake that is stopping the script from functioning.
I tried making this basic script with help of the manual and other scripts found on the forum. I googled to see if i could find what is stopping my script from working but had no succes with that.
I would really appreciate some help with it to see what i am doing wrong and get a basic understanding of AHK.
Thankyou for taking the time to respond.
Code: Select all
F12::Suspend
SendMode Event
CoordMode, Mouse, Screen
CoordMode, Pixel, Screen
CoordMode, ToolTip, Screen
;#Persistent
Loop,
{
Random, x, 854,945
Random, y, 670,750
MouseClick, Left, %RandomX%, %RandomY%
return
}
{
Random ranSleep, 350, 600
sleep %ranSleep%
return
}
{
PressSpaceBar:
Send, {Space}
return
}
{
Random ranSleep, 60000, 62000
sleep %ranSleep%
return
}
{
Random, x, 1142,1408
Random, y, 340,540
MouseClick, Left, %RandomX%, %RandomY%
return
}
{
Random ranSleep, 200, 400
sleep %ranSleep%
return
}
{
Send {1}
return
}
{
Random ranSleep, 250, 350
sleep %ranSleep%
return
}
return