Skip to content

Instantly share code, notes, and snippets.

@nucular
nucular / fixwacom.bat
Created December 16, 2016 22:46
Batch file to fix your Wacom driver after it broke again
@echo off
:checkPrivileges
echo Checking for privileges
net file 1>nul 2>nul
if '%errorlevel%' == '0' (
goto gotPrivileges
) else (
echo Requesting privileges (script will execute in new window)
powershell "saps -filepath %0 -verb runas" >nul 2>&1
@sedm0784
sedm0784 / CapsLockCtrlEscape.ahk
Last active July 16, 2024 11:14
AutoHotkey script to map Caps Lock to Escape when it's pressed on its own and Ctrl when used in combination with another key, à la Steve Losh. Adapted from one that does something similar with the Ctrl Key on the Vim Tips Wiki (http://vim.wikia.com/wiki/Map_caps_lock_to_escape_in_Windows?oldid=32281). (Plus contribs from @randy909 & @mmikeww.)
g_LastCtrlKeyDownTime := 0
g_AbortSendEsc := false
g_ControlRepeatDetected := false
*CapsLock::
if (g_ControlRepeatDetected)
{
return
}