Skip to content

Screen Clicker

Choose a tag to compare

@Fajar-RahmadJaya Fajar-RahmadJaya released this 26 Nov 15:09
756a9db

Description :

Another useful you can use with AutoHotkey is screen clicker. What screen clicker do is clicking some coordinate on your screen with some interval. There is not much program or software that can do this. If there any, it usually need you to pay to be able to use it. Fortunately there is AutoHotkey that can help you. Screen clicker can be useful if you have repetitive task such as filling form, simulate click, or even clicking element. You can also activate or deactivate it using some key combination to make it more convenient and flexible. Don't worry, because i also made an AutoHotkey script to take screen coordinate and copy it automatically.

How To Use Template :

There are 3 thing you can modify in this script :

  1. Screen clicker toogle ( To activate or deactivate screen clicker ): q & e:: (Line 3)
  2. Screen coordinate : coordinates := [[500, 300], [600, 400], [700, 500]] (Note : You can the coordinate as much as you want) (Line 19)
  3. Interval : interval := 500 (Line 29)

Example Changing Template :

I will give you example the script change. Example, do screen clicker with coordinate [100, 0], [0, 100], [100, 100], [200, 100], [200, 200], [0, 200] with interval 1 minute (60.000 millisecond) if i press (Left Alt + Space).

  • Open chrome and download folder with shortcut assignment 'alt+space'
toggle := false 

Lalt & Space:: ; 'Screen Will Activate or Deactivate if Keys Pressed' Change
{ 
global
    toggle := !toggle 

    if (toggle) {
        SetTimer(ClickLoop,100)
    } else {
        SetTimer(ClickLoop,0)
    }
    return
} 

ClickLoop()
{ 
global 
    coordinates := [[100, 0], [0, 100], [100, 100], [200, 100], [200, 200], [0, 200]] ; Coordinate Change

    Loop coordinates.Length != 0 ? coordinates.Length : ""
    {
        x := coordinates[A_Index][1] 
        y := coordinates[A_Index][2] 

        MouseMove(x, y)
        Click()

        interval := 60000 ; Interval Change

        Sleep(interval)
    }
    return
} 

Full Code :

toggle := false 

q & e:: ; Change this to toggle screen clicker on or off
{ 
global
    toggle := !toggle 

    if (toggle) {
        SetTimer(ClickLoop,100)
    } else {
        SetTimer(ClickLoop,0)
    }
    return
} 

ClickLoop()
{ 
global 
    coordinates := [[500, 300], [600, 400], [700, 500]] ; Change the interval to your preference

    Loop coordinates.Length != 0 ? coordinates.Length : ""
    {
        x := coordinates[A_Index][1] 
        y := coordinates[A_Index][2] 

        MouseMove(x, y)
        Click()

        interval := 500 ; Change the interval to your preference in millisecond

        Sleep(interval)
    }
    return
}