Code: Select all
#If Winactive("ahk_exe brave.exe") ;Hotkeys below are only active if this is true
*Numpad1::
SetTitleMatchMode, 2 ;Find text anywhere in window title
WinActivate, Oddschecker ;Activate first window with "Oddschecker" somewhere in the title
Send, {ctrl Down}{tab}{ctrl Up} ;Send Ctrl + 1
Sleep, 100
Send, ^{r}
Sleep, 100
WinActivate, Exchange ;Activate first window with "Exchange" somewhere in the title
Send, {ctrl Down}{tab}{ctrl Up} ;Send Ctrl + 1
Sleep, 100
WinActivate, Matchbook ;Activate first window with "Matchbook" somewhere in the title
Send, ^{tab} ;Send Ctrl + 1
Sleep, 100
WinActivate, Timeform ;Activate first window with "Matchbook" somewhere in the title
Send, ^{tab} ;Send Ctrl + 1
Sleep, 100
Return
#If ;Reset hotkey context-sensitivity