Cedeq Community Forum
Keyboard Shortcut - Open Several Web Pages at Once - Printable Version

+- Cedeq Community Forum (https://cedeq.com/forums)
+-- Forum: General (https://cedeq.com/forums/forumdisplay.php?fid=1)
+--- Forum: Keyboard shortcuts with AutoHotkey code (https://cedeq.com/forums/forumdisplay.php?fid=4)
+--- Thread: Keyboard Shortcut - Open Several Web Pages at Once (/showthread.php?tid=20)



Keyboard Shortcut - Open Several Web Pages at Once - denilama - 03-15-2018

ShortKeeper already has a basic “Launch website” command to let you quickly create a shortcut to launch a web page. But what if you want a shortcut that will launch several web pages at once? ShortKeeper has you covered with its “Run AutoHotkey code” command.

The following three scripts (one for IE, one for Chrome, and one for Firefox) launch four websites (cedeq.com, autohotkey.com, google.com, and bing.com). The scripts are designed to launch all four websites in different tabs inside the same browser window.

Need help creating a keyboard shortcut with ShortKeeper using the following AutoHotkey code? This 5-minute tutorial will help!

Internet Explorer (IE):
Pwb :=  ComObjCreate("InternetExplorer.Application")
Pwb.Visible:=True
Pwb.Navigate("https://www.cedeq.com")
Pwb.Navigate("https://www.autohotkey.com", 2048)
Pwb.Navigate("https://www.google.com", 2048)
Pwb.Navigate("https://www.bing.com", 2048)

Google Chrome:
run % "chrome.exe " . "https://www.cedeq.com"
winwait ahk_class Chrome_WidgetWin_1
run % "chrome.exe " . "https://www.autohotkey.com"
run % "chrome.exe " . "https://www.google.com"
run % "chrome.exe " . "https://www.bing.com"

Mozilla Firefox:
run % "firefox.exe " . "https://www.cedeq.com"
winwait ahk_class MozillaWindowClass
run % "firefox.exe " . "https://www.autohotkey.com"
run % "firefox.exe " . "https://www.google.com"
run % "firefox.exe " . "https://www.bing.com"

Simple enough!!