Impossible to switch between Windows tabs
While ClickFix v4.0.0 is running it's impossible to switch between taskbar tabs by clicking them while some windiows are open (task manager or powershell, for example). ALT+TAB works fine, but clicking on the tabs does nothing. I'm using Windows 10.
I figured out the same (Windows 11).
Prozedure: 1: Open Explorer or a browser 2: Open Taskmanager 3: Try to switch between the applications using mouseclick -> does not work 4: Quit "clickfix" 5: Try to switch between the applications using Mouseclick -> works
How to Debounce Mouse Clicks Using AutoHotkey
I switched to "AutoHotkey" instead of this (dead) "clickfix" to face this problem.
Step 1: Download and Install AutoHotkey
- Download AutoHotkey from https://www.autohotkey.com/.
- Run the installer and follow the on-screen instructions to install the program.
Step 2: Create the Script File
- Open a text editor like Notepad or Notepad++.
- Create a new file and save it as clickDebounce.ahk. Make sure the file extension is .ahk.
Step 3: Edit the Script
- Open the clickDebounce.ahk file in your text editor.
- Copy and paste the following script into the file:
#Requires AutoHotkey >=2.0- <2.1
~LButton:: { static LastClickTime := 0 static ClickDifference := 0 static MinimalClicktime := 40 static MaximalClicktime := 200
ClickDifference := A_TickCount - LastClickTime
if (ClickDifference < MinimalClicktime) {
; Debounce the click
Click("up") ; Suppress the original event
return
}
else if (ClickDifference > MaximalClicktime) {
; Allow single click through
return
}
else if (ClickDifference > MinimalClicktime and ClickDifference < MaximalClicktime) {
; Handle double click
Click("up") ; Suppress the original event
Click("down")
KeyWait("LButton")
Click("up")
}
LastClickTime := A_TickCount
return
}
- Save the file after pasting the script.
Step 4: Run the Script to checkt if it works for you
- Double-click the clickDebounce.ahk file to run the script. -> You should see an AutoHotkey icon appear in your system tray, indicating the script is active.
Step 5: Add the Script to Startup (Optional) If you want the script to run automatically every time you start your computer:
- Press Win + R, type shell:startup, and hit Enter. This will open the Startup folder.
- Copy the clickDebounce.ahk file into the Startup folder. -> Now, the script will automatically run each time you start your computer, ensuring your mouse clicks are debounced without any additional effort.
^Don't know why my text here is formated in this way. The script is between the long lines.