Skip to content

Instantly share code, notes, and snippets.

@sl5net
Created May 8, 2015 15:13
Show Gist options
  • Save sl5net/b64459d88bbcdeb04a97 to your computer and use it in GitHub Desktop.
Save sl5net/b64459d88bbcdeb04a97 to your computer and use it in GitHub Desktop.
Map AltGr+7 to Strg+Alt+7 ... Shortcuts for Jetbrains IDE
#IfWinActive,ahk_class SunAwtFrame
^>!7:: ; AltGr + 7
useCase:=1
if(useCase == 2)
{
; dont work
Suspend,on
Send,{Blind}
Send,{CtrlDown}!{{} ; works
;~ Send,{
Send,{CtrlUp}
Send,{Blind}
Suspend,off
}
if(useCase == 1)
{
Suspend,on
Send,{Blind}
Send,{CtrlDown}{AltDown}
Send,{{} ; works
;~ Send,{
Send,{Alt Up}{CtrlUp}
Send,{Blind}
Suspend,off
}
return
^>!0:: ; catches AltGr + 0
useCase:=1
if(useCase == 1)
{
Suspend,on
Send,{Blind}
Send,{CtrlDown}{AltDown}
Send,{}} ; works
;~ Send,{
Send,{Alt Up}{CtrlUp}
Send,{Blind}
Suspend,off
}
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment