AutoHotkey mouse click script

visitor123

Regular Member
Joined
May 5, 2022
Messages
419
Reaction score
203
I already have an autohotkey script and im trying to add mouse click code, i want the mouse to click once every 10 minutes, how should i write the code?

i need the specific codes, if anybody knows please tell me
 
Last edited:
#NoEnv
SetWorkingDir %A_ScriptDir%
CoordMode, Mouse, Window
SendMode Input
#SingleInstance Force
SetTitleMatchMode 2
#WinActivateForce
SetControlDelay 1
SetWinDelay 0
SetKeyDelay -1
SetMouseDelay -1
SetBatchLines -1


F3::
Macro1:
Loop
{
Click, Left, 1
Sleep, 10
Sleep, 10000
}
Return
 
#NoEnv
SetWorkingDir %A_ScriptDir%
CoordMode, Mouse, Window
SendMode Input
#SingleInstance Force
SetTitleMatchMode 2
#WinActivateForce
SetControlDelay 1
SetWinDelay 0
SetKeyDelay -1
SetMouseDelay -1
SetBatchLines -1


F3::
Macro1:
Loop
{
Click, Left, 1
Sleep, 10
Sleep, 10000
}
Return

Thank you so much,

Does it matter where i paste it in the script page? i copied and pasted it under the other codes. should i paste it up, or mid or something? im new to autohotkey and i paid somebody to prepare my current script on fiverr and i additonally need mouse left click codes as well


Update: ive waited but it doesn't click, what am i doing wrong?
 
Last edited:
Thank you so much,

Does it matter where i paste it in the script page? i copied and pasted it under the other codes. should i paste it up, or mid or something? im new to autohotkey and i paid somebody to prepare my current script on fiverr and i additonally need mouse left click codes as well
so what if i teach some python basics and desktop app development , or web dev or also game dev (godot)
 
Thank you so much,

Does it matter where i paste it in the script page? i copied and pasted it under the other codes. should i paste it up, or mid or something? im new to autohotkey and i paid somebody to prepare my current script on fiverr and i additonally need mouse left click codes as well


Update: ive waited but it doesn't click, what am i doing wrong?
To intergrade with another already created script paste :

Loop
{
Click, Left, 1
Sleep, 10
Sleep, 10000
}

where it would logically go.
As in - if the mouse moves and then you want to click - after the mouse movement command.

so what if i teach some python basics and desktop app development , or web dev or also game dev (godot)
I learned to program using AHK, because it is really very simple. Now I'm quite competent in Python :)
 
To intergrade with another already created script paste :

Loop
{
Click, Left, 1
Sleep, 10
Sleep, 10000
}

where it would logically go.
As in - if the mouse moves and then you want to click - after the mouse movement command.
I pasted it but it still doesn't click, i don't know what im doing wrong. the mouse will be stable i just want the mouse to click on its own. that's all i need.

I pasted it under the other codes, should i paste it in the middle or something?
Loop
{
Click, Left, 1
Sleep, 10
Sleep, 10000
}
 
I pasted it but it still doesn't click, i don't know what im doing wrong. the mouse will be stable i just want the mouse to click on its own. that's all i need.

I pasted it under the other codes, should i paste it in the middle or something?
Loop
{
Click, Left, 1
Sleep, 10
Sleep, 10000
}
without seeing all the code its hard to say where it should be pasted
 
Back
Top