From 8f4bb1f776552d98aaafb2114864f8e9a45eb17a Mon Sep 17 00:00:00 2001 From: Gewerd-Strauss <80548781+Gewerd-Strauss@users.noreply.github.com> Date: Fri, 25 Jun 2021 18:42:15 +0200 Subject: [PATCH] Update UserCommands.ahk * added preformatted options for icognito mode in firefox, IE and edge * added searchable google-maps --- GUI/UserCommands.ahk | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/GUI/UserCommands.ahk b/GUI/UserCommands.ahk index 5fecfd1..6d1417d 100644 --- a/GUI/UserCommands.ahk +++ b/GUI/UserCommands.ahk @@ -41,9 +41,17 @@ else if Pedersen = x%A_Space% ; Search Google as Incognito ; So what this does is that it runs chrome with the arguments "-incognito" and the google search URL where REPLACEME in the URL has been replaced by your input. { gui_search_title = Google Search as Incognito - gui_search("C:\Program Files (x86)\Google\Chrome\Application\chrome.exe -incognito https://www.google.com/search?safe=off&q=REPLACEME") + gui_search_title = Google Search as Incognito + ;gui_search("C:\Program Files (x86)\Google\Chrome\Application\chrome.exe -incognito https://www.google.com/search?safe=off&q=REPLACEME") ;; This is the path needed for chrome: if the path is incorrect, you need to replace the path to the chrome.exe file yourself. DO NOT remove/change the -incognito/-inprivate afterwards. JUST the path at the beginning, otherwise it won't open in incognito mode. + ;gui_search("C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe -inprivate https://www.google.com/search?safe=off&q=REPLACEME") + gui_search("firefox.exe -private-window https://www.google.com/search?safe=off&q=REPLACEME") + ;gui_search("C:\Program Files\Internet Explorer\iexplore.exe -InPrivate https://www.google.com/search?safe=off&q=REPLACEME") ;; <--- THIS DOES NOT WORK. I can't trigger icognito mode in iex. +} +else if Pedersen = maps ; Google Maps focused on the Rhine-Waal University of Applied Sciences +{ + gui_search_title = Lost on the way home? + gui_search("https://www.google.com/maps/search/REPLACEME/") } - ;------------------------------------------------------------------------------- ;;; SEARCH OTHER THINGS ;;; @@ -103,11 +111,6 @@ else if Pedersen = paint ; MS Paint gui_destroy() run "C:\Windows\system32\mspaint.exe" } -else if Pedersen = maps ; Google Maps focused on the Technical University of Denmark, DTU -{ - gui_destroy() - run "https://www.google.com/maps/@55.7833964`,12.5244754`,12z" -} else if Pedersen = inbox ; Open google inbox { gui_destroy()