Repository navigation
Auto Clicker
Description :
AutoHotkey can also be used as auto clicker. But not like other auto clicker, AutoHotkey can made you able to add more command to the clicker. For example in this code, you can use 'e' to make condition for it to work. So, if you hold 'e' it will send left click multiple time and you can adjust the interval between click. For short, with this you can do more advance auto clicker in lightweight size. You can also use this as template or adjust to your preference on interval, condition for script to work, change left click with another keys etc.
How To Use Template :
You can change the code to your preferences like what i describe with adjusting some code such as :
- Change interval :
ClickInterval := 100 - Change what key to click :
$e::and$e up:: - Change auto click key :
Click
Example Changing Template :
I will give you example if i want to change the code for it to behave like this :
- Auto clicking 'Space' when i press 'Left Alt' with interval 1 minute (60000 millisecond) :
ClickInterval := 60000 ; Change the interval to 1 minute (60000 millisecond)
global isClicking := false
$Lalt:: ; Change the 'to doing auto click when left alt is held' 1
{
global isClicking
isClicking := true
while (isClicking)
{
Space ; Change Auto Clicking to Space
Sleep(ClickInterval)
}
}
$Lalt up:: ; hange the 'to doing auto click when left alt is held' 2
{
global isClicking
isClicking := false
}
Full Code :
ClickInterval := 100 ; Change this if you want to change the interval
global isClicking := false
$e:: ; Change this if you want to change hold 'e' for condition to do auto clicker
{
global isClicking
isClicking := true
while (isClicking)
{
Click ; Change this if you want to change left click to another key for auto clicker
Sleep(ClickInterval)
}
}
$e up:: ; Change this if you want to change hold 'e' for condition to do auto clicker
{
global isClicking
isClicking := false
}