is there anyway to remap the "n" key when im on the googlereader web page in chrome to be and "n + enter" key instead?
Thanks so much
n+enter
Started by
elmehi
, May 07 2012 10:44 PM
9 replies to this topic
#1
elmehi
Posted 07 May 2012 - 10:44 PM
#2
Posted 07 May 2012 - 11:40 PM
Hi!
Yes, it is possible.
If you have AHK Basic:
Change the red text by the window title (for eg: GoogleReader).
If you can't tell the complete title, or it changes depending on different things, just erase the ";" on the first line, and place a static part of the title (for eg: Google).
Yes, it is possible.
If you have AHK Basic:
;Settitlematchmode 2
n::
IfWinActive, [color=red]Place Here the GoogleReader window title[/color]
{
Send {n down}
Send {Enter}
Send {n up}
}
else
Send n
return
Change the red text by the window title (for eg: GoogleReader).
If you can't tell the complete title, or it changes depending on different things, just erase the ";" on the first line, and place a static part of the title (for eg: Google).
#3
elmehi
Posted 08 May 2012 - 02:11 AM
i got a message that said "71 hotkeys were received in the last 1108 ms"
any idea what im doing wrong?
any idea what im doing wrong?
#4
Posted 08 May 2012 - 03:17 AM
you just need to add a $ in front of the n:: so it when it sends the n it doesn't trigger the hotkey - else you will get an infinite loop
$n:: then the rest
#5
Guests
Posted 08 May 2012 - 11:35 AM
@janopn: #IfWin... is probably easier in this case <!-- m -->http://www.autohotke...tml#ifwinactive<!-- m -->
#6
Posted 08 May 2012 - 12:06 PM
1)Sorry, i forgot the $ in a hurry!
2)Yes, i though #IfWinActive required AHK_L, but no. It's #IF.
So sad post, excuse me ^^
Final code could be:
2)Yes, i though #IfWinActive required AHK_L, but no. It's #IF.
So sad post, excuse me ^^
Final code could be:
#IfWinActive, [color=red]Place Here the GoogleReader window title[/color]
$n::
Send {n down}
Send {Enter}
Send {n up}
return
#IfWinActive
#7
elmehi
Posted 08 May 2012 - 05:10 PM
It does not appear to be working. Not sure why.
This is what I have:
Also, I want the hotkey to work only when I am actively viewing the tab running google reader- not when it the tab is opened in the background.
Thanks
This is what I have:
#IfWinActive, http://www.google.com/reader/view/
$n::
Send {n down}
Send {Enter}
Send {n up}
return
#IfWinActive
Also, I want the hotkey to work only when I am actively viewing the tab running google reader- not when it the tab is opened in the background.
Thanks
#8
Posted 08 May 2012 - 05:15 PM
#IfWinActive is looking for a title, not the URL. Use WindowSpy to see what the current title is. For me it looks like it should be Google Reader
Also, do you want it to be holding the n key while it hits enter?
Also, do you want it to be holding the n key while it hits enter?
SetTitleMatchMode, 2
#IfWinActive, Google Reader
$n::
Send n{Enter}
return
#IfWinActive
#9
elmehi
Posted 08 May 2012 - 10:09 PM
Also, do you want it to be holding the n key while it hits enter?
No. Every "n" should click one "n" followed by one "enter".
#10
Posted 09 May 2012 - 03:10 PM
so
Send n{Enter} is what you want instead of Send {n down}{Enter}{n up}. Di you try the code I posted?




