I couldn't make it even open an incognito window, so I have it opening a normal window, opening an incognito window, then killing the original window. After that, it's supposed to open the desired sites. When I run it....it does nothing!
Here's my code:
Code: Select all
^+o::
{
Run "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
WinWait "New Tab"
WinActivate "New Tab"
Send "^+n"
WinActivate "New Tab"
if WinExist("New Tab")
WinKill
WinWait "New Incognito Tab"
WinActivate "New Incognito Tab"
A_Clipboard := "mail.google.com"
Send "^v"
Sleep 500
Send "+t"
A_Clipboard := "youtube.com"
Send "^v"
Sleep 500
Send "+t"
A_Clipboard := "https://www.wikipedia.org/"
Send "^v"
}
(Also, if someone knows how to make a Chrome Shortcut that opens more than one tab in incognito, that'd be even better... I've only figured out how to get 1 tab.)
[Mod edit: Replaced color tags with code tags. Please use them yourself when posting code. Besides the other advantages of the code box such as preserving indentation and syntax highlighting, your blue text is difficult for those using a dark theme to read.]