Skip to content

Instantly share code, notes, and snippets.

@Arax20
Last active April 8, 2026 10:41
Show Gist options
  • Select an option

  • Save Arax20/9493799b3aa73e1fb69af8d4f1c72ba6 to your computer and use it in GitHub Desktop.

Select an option

Save Arax20/9493799b3aa73e1fb69af8d4f1c72ba6 to your computer and use it in GitHub Desktop.
Allows rebinding of winkey to a shortcut without getting in the way of system winkey shortcuts.
#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.
LWin::
Input, x, L1 ; Catches key after winkey
if (ErrorLevel = "NewInput") ; If catching was interrupted
{
Send #+r ; Set this to your powertoys run shortcut
return
}
Send, #%x% ; Sends caught key + winkey
return
~LWin Up::
Input, , L0 ; Interrupts key catching on winkey release
return
@SudharsanS912
Copy link
Copy Markdown

I made a solution for this using AutoHotKey scripts. https://github.com/SudharsanS912/start-to-run/

But for this to work, u must change your win key map to vk232 and your powertoys run to ctrl+alt+shift+/
Well, u can replace them in the script also

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment