Skip to content

Instantly share code, notes, and snippets.

@gersonfs
Created September 11, 2025 10:55
Show Gist options
  • Select an option

  • Save gersonfs/748d31a852adcc08049e93c19c70b812 to your computer and use it in GitHub Desktop.

Select an option

Save gersonfs/748d31a852adcc08049e93c19c70b812 to your computer and use it in GitHub Desktop.
Remapeamento da tecla copilot para / e ?
; Este script serve para mapear e tecla copilot para as teclas / e ? como deveria ser originalmente no notebook
; Asus vivobook S14
#Requires AutoHotkey v2.0
#SingleInstance Force
SetWorkingDir A_ScriptDir
#InputLevel 1 ; Prioridade alta para interceptar antes do Windows
; Mapeia Left Shift + Win + F23 (Copilot) para "/" e "?"
$+#F23::
{
; Verifica apenas Shift adicional (ignora Left Shift embutido)
if GetKeyState("RShift", "P") || (GetKeyState("LShift", "P") && !GetKeyState("LWin", "P"))
{
SendEvent "{Raw}?" ; Copilot + Shift = "?"
}
else
{
SendEvent "{Raw}/" ; Copilot sozinha = "/"
}
return
}
; Bloqueia em apps UWP e Word
#HotIf WinActive("ahk_class ApplicationFrameWindow") || WinActive("ahk_exe winword.exe")
$+#F23::return
#HotIf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment