Shortcut to start the default browser

Share your favorite FastKeys commands
User avatar
Posts: 58
Joined: Tue Mar 18, 2014 8:46 am
Location: The Netherlands

Shortcut to start the default browser

PostPosted by Ennovy » Thu Oct 16, 2014 12:55 pm

I wanted only one shortcut to start the default browser. I use Google Chrome or Firefox as the default browser.

There are two ways to to that:

1. You can make a shortcut to start a URL like "http://fastkeys.prophpbb.com/" and when executed it will open in the default browser

2. I made a tiny script that reads a value in the Windows Registry and acts accordingly

Shortcut: Ctrl + Shift + 0 (or anything you like)
Description: Start the default browser
Type: Command
Command:

Code: Select all
RegRead,vBrowser,HKEY_CLASSES_ROOT,http\shell\open\command
If vBrowser contains firefox
{
run C:\Program Files (x86)\Mozilla Firefox\firefox.exe
}
Else if vBrowser contains Chrome
{
run C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
}


Please comment if you know another/better way ;)

Only tested on Windows 7 (64 bit)

SteveQ

Re: Shortcut to start the default browser

PostPosted by SteveQ » Mon Dec 12, 2016 7:22 am

Thanks for posting this, it works fine. I actually prefer the first method, (like Run, www.google.com) but I have now learned how to get the information from the registry. Very useful, thanks.


Last bumped by Anonymous on Mon Dec 12, 2016 7:22 am.

Return to User Commands and Scripts

Who is online

Users browsing this forum: No registered users and 0 guests