I would like to use some hotstrings in Chrome to open specific sites

I tried that, but I guess you're right that Chrome don't use classNN reliably, because I couldn't get it work so the rr shortcut would only work in the URL bar.

But! Fear not! I do have a workaround (after a couple of hours of googling...) This is the code: #IfWinActive Új lap - Google Chrome :*:rr::{BS}reddit.com{Enter} return

IfWinActive ahk_exe chrome.exe

~F6:: Input, SingleKey, L1, {LControl}{RControl}{LAlt}{RAlt}{LShift}{RShift}{LWin}{RWin}{AppsKey}{F1}{F2}{F3}{F4}{F5}{F6}{F7}{F8}{F9}{F10}{F11}{F12}{Left}{Right}{Up}{Down}{Home}{End}{PgUp}{PgDn}{Del}{Ins}{BS}{Capslock}{Numlock}{PrintScreen}{Pause} if !(SingleKey "r") return Input, SingleKey, L1, {LControl}{RControl}{LAlt}{RAlt}{LShift}{RShift}{LWin}{RWin}{AppsKey}{F1}{F2}{F3}{F4}{F5}{F6}{F7}{F8}{F9}{F10}{F11}{F12}{Left}{Right}{Up}{Down}{Home}{End}{PgUp}{PgDn}{Del}{Ins}{BS}{Capslock}{Numlock}{PrintScreen}{Pause} if (SingleKey "r") Send, {BS}{BS}reddit.com{Enter} return

The way it works is the following: *if on a new tab I type rr then it'll autocomplete reddit.com and press enter to open *if I press F6 and then type rr then it'll autocomplete reddit.com and press enter to open *if I just type rr then it'll do nothing

Not the perfect, but since I'm really used to pressing F6 to type to the URL bar, this works for me!

/r/AutoHotkey Thread Parent