Created
September 11, 2025 10:55
-
-
Save gersonfs/748d31a852adcc08049e93c19c70b812 to your computer and use it in GitHub Desktop.
Remapeamento da tecla copilot para / e ?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ; 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