Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
SetTitleMatchMode 2
#MaxThreadsPerHotkey 3
^E::
Toggle := !Toggle
Loop
{
SetControlDelay, -1
If (!Toggle)
Break
ControlClick, x643 y520, Kongregate - Google Chrome,, Left, 1, NA,
Sleep 35 ; Make this number higher for slower clicks, lower for faster.
}
Return
^D::
Toggle := !Toggle
Loop
{
SetControlDelay, -1
If (!Toggle)
Break
Click
Sleep 50
}
Return
Things I've noticed:
- Not sure if it's coincidental and there is something else wrong with my pc but this started happening since the first time I ran this script.
- It appears that the more I use the script, the more frequently I need to restart my PC due to the freeze.
- I tried to update my mouse drivers to see if it's a driver issue, but it appears my mouse has been unsupported since like 2011, lol.
- My keyboard works perfectly fine when my mouse freeze and when I move the mouse around while it's frozen, the sensor does show that the movement is being detected.
- I tried to not run the script to see if it actually is the script, but this script just made my life too easy to want to not use it xD