Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • December 03, 2016, 01:48:06 PM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: [How To] Set keyboard shortcuts in Google Chrome  (Read 3745 times)

sri

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 677
    • View Profile
    • Sridhar Katakam
    • Read more about this member.
    • Donate to Member
[How To] Set keyboard shortcuts in Google Chrome
« on: September 05, 2008, 06:14:27 AM »
Hi guys,

As you already know Google Chrome does not yet offer customizable keyboard shortcuts. In the mean time, we can use AutoHotKey for setting keyboard shortcuts to common tasks like switching to previous and next tabs, going back and forward in the history, closing and un-doing last closed tab. Function keys can also be mapped for these actions.

I have written about it in a blog post. If interested, check it out.



Thanks to Lanux.
<a href="https://sridharkatakam.com">My blog</a>

urlwolf

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 1,797
    • View Profile
    • Donate to Member
Re: [How To] Set keyboard shortcuts in Google Chrome
« Reply #1 on: September 05, 2008, 08:57:00 AM »
I tried it, but the shortcuts are not helping. If I type an url, I want the shortcuts to be off (otherwise, it closes my tab if I type a 'c' for example). Is this the behavior you intended?

sri

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 677
    • View Profile
    • Sridhar Katakam
    • Read more about this member.
    • Donate to Member
Re: [How To] Set keyboard shortcuts in Google Chrome
« Reply #2 on: September 05, 2008, 09:23:12 AM »
Hi urlwolf, did you read the Important Note section of my blog post?
<a href="https://sridharkatakam.com">My blog</a>

urlwolf

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 1,797
    • View Profile
    • Donate to Member
Re: [How To] Set keyboard shortcuts in Google Chrome
« Reply #3 on: September 06, 2008, 03:09:40 AM »
obviously, I didn't. But this makes it a showstopper for me. maybe there's a way to find what kind of window the mouse is over at a particular time? I don't know ahk well enough to say; the autoIT spy that comes with ahk does give you that kind of info. If chrome doesn't change much, it may be possible to autodetect.

sri

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 677
    • View Profile
    • Sridhar Katakam
    • Read more about this member.
    • Donate to Member
Re: [How To] Set keyboard shortcuts in Google Chrome
« Reply #4 on: September 06, 2008, 03:20:37 AM »
ClassNN value of Chrome's address bar is: Chrome_AutocompleteEdit1

I am a novice at programming but will try to modify the .ahk so that the keys don't work when ClassNN = Chrome_AutocompleteEdit1.

By the way, I've updated the script so that CAPS lock will open a new tab in Chrome. Works even when Chrome is not running or not the active application. If you want CAPS lock to work again, simply press Shift+CAPS. Shift+CAPS toggles between default functionality of the CAPS lock and tab opening in Chrome.
<a href="https://sridharkatakam.com">My blog</a>

sri

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 677
    • View Profile
    • Sridhar Katakam
    • Read more about this member.
    • Donate to Member
Re: [How To] Set keyboard shortcuts in Google Chrome
« Reply #5 on: September 07, 2008, 02:34:41 PM »
I have updated the script and modified the single key presses so that windows key has to be pressed.

So now using the script:

Win+a: Switch to previous tab
Win+s: Switch to next tab
Win+z: Go back
Win+x: Go forward
Win+c: Close tab
<a href="https://sridharkatakam.com">My blog</a>

sri

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 677
    • View Profile
    • Sridhar Katakam
    • Read more about this member.
    • Donate to Member
Re: [How To] Set keyboard shortcuts in Google Chrome
« Reply #6 on: September 08, 2008, 12:57:22 AM »
Updated the script to add "Paste and go":

Win+v – Pastes the URL (should have been already copied) in the address bar and hits return key
Win+Alt+v – Opens a new tab, pastes the URL in the address bar and hits return key
<a href="https://sridharkatakam.com">My blog</a>

sri

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 677
    • View Profile
    • Sridhar Katakam
    • Read more about this member.
    • Donate to Member
Re: [How To] Set keyboard shortcuts in Google Chrome
« Reply #7 on: September 08, 2008, 02:31:17 PM »
[How To] Accelerate bookmarking to delicious from Chrome

The delicious add-on for Firefox lets us select some text on a web page and click on a button to add the page to your online bookmarks at delicious.com. The selected text will then be auto populated in the NOTES field of the bookmarking form. We can achieve a similar functionality in Chrome.

I wrote a AutoHotKey script using which you can select text on a web page, press a customizable hotkey and submit the page to delicious with NOTES field pre-filled automatically. All you need to do is enter/select the tags and hit Return to submit the form.

http://www.howtotuts...licious-from-chrome/
<a href="https://sridharkatakam.com">My blog</a>