Skip to content

Instantly share code, notes, and snippets.

@JoeGlines
Created October 4, 2021 15:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoeGlines/561e6d3dbc18f92335ed57f56f0d25ca to your computer and use it in GitHub Desktop.
Save JoeGlines/561e6d3dbc18f92335ed57f56f0d25ca to your computer and use it in GitHub Desktop.
#SingleInstance,Force
#NoEnv
;********************Fix stupid Windows clipboard***********************************
#IfWinActive ahk_class Shell_LightDismissOverlay
enter:: ;when hit enter key
Send, {space} ;send the space key
return ;Stop from moving forward
@Binly42
Copy link

Binly42 commented Dec 30, 2021

<#z::
    if (not WindowsClipboard_Status_ShowingHistory) {
        ; Win+V => Clipboard history  (by win10
        Send, {Blind}{LWindown}v{LWinUp}
        WindowsClipboard_Status_ShowingHistory := true
        SetTimer, WindowsClipboard_Act_ShowingHistory_keywait_win_up, -1
    }
    Return

        WindowsClipboard_Act_ShowingHistory_keywait_win_up() {
            KeyWait, LWin
            WindowsClipboard_Status_ShowingHistory := false
        }

#If WindowsClipboard_Status_ShowingHistory
z::Send, {Down}
x::Send, {up}

i::Send, {up}
k::Send, {Down}

; Space => select and confirm  (by win10
#If

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