Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 127
» Latest member: linus@123
» Forum threads: 61
» Forum posts: 147

Full Statistics

Online Users
There are currently 37 online users.
» 0 Member(s) | 37 Guest(s)

Latest Threads
Enterpad Tips - Do Multip...
Forum: The Enterpad corner
Last Post: janamacon
09-29-2021, 08:18 AM
» Replies: 2
» Views: 7,769
Pay by mastercard
Forum: The Enterpad corner
Last Post: Jinonisie
07-19-2021, 07:51 AM
» Replies: 2
» Views: 7,578
Keyboard Shortcut - Get G...
Forum: Keyboard shortcuts with AutoHotkey code
Last Post: bratpits
06-26-2021, 07:12 AM
» Replies: 3
» Views: 5,889
Enterpad with new compute...
Forum: The Enterpad corner
Last Post: denilama
10-12-2020, 08:30 AM
» Replies: 9
» Views: 30,960
Keyboard Shortcut - Auto ...
Forum: Keyboard shortcuts with AutoHotkey code
Last Post: denilama
09-23-2020, 10:12 AM
» Replies: 2
» Views: 8,977
Pre Sales Template Questi...
Forum: The Enterpad corner
Last Post: denilama
08-20-2020, 12:45 PM
» Replies: 1
» Views: 5,419
Keyboard Shortcut - Launc...
Forum: Keyboard shortcuts with AutoHotkey code
Last Post: Sooqa
08-06-2020, 12:10 AM
» Replies: 4
» Views: 5,068
Keyboard Shortcut - Find ...
Forum: Keyboard shortcuts with AutoHotkey code
Last Post: pilot888
07-27-2020, 12:58 PM
» Replies: 0
» Views: 1,041
ChromeBooks
Forum: Need help with ShortKeeper?
Last Post: denilama
07-12-2020, 04:12 PM
» Replies: 1
» Views: 1,758
Is the Enterpad waterproo...
Forum: The Enterpad corner
Last Post: denilama
06-13-2020, 11:18 AM
» Replies: 1
» Views: 5,228

 
Lightbulb Keyboard Shortcut - Open Google Maps from a Selected Address
Posted by: denilama - 02-02-2018, 01:59 PM - Forum: Keyboard shortcuts with AutoHotkey code - No Replies

How are you using Google Maps? Do you have to select an address, copy it to the clipboard, start Google Maps, paste the address, and finally hit "Enter" to get the location? If you are doing this again and again, you may find the following AutoHotkey script useful. Simply select the address and then press the keyboard hotkey. This will bring the address up in Google Maps.

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

ClipSaved := ClipboardAll
Clipboard =
SendInput, ^c
ClipWait, 2
if ErrorLevel
{
  MsgBox % "Failed attempt to copy text to clipboard."
}
else
{
  SelectedAddress := Trim(Clipboard)
  StringReplace,SelectedAddress,SelectedAddress,`n,%A_SPACE%,A
  StringReplace,SelectedAddress,SelectedAddress,`r,,A
  run % "https://www.google.com/maps/search/" . SelectedAddress . "/"
}
Clipboard := ClipSaved

The selected address can be on several lines. New lines will be replaced with spaces.

This script is optimized to be used with ShortKeeper. As such, there is no "Return" at the end and variable(s) don’t need to be cleared. ShortKeeper will do this automatically. Just copy/paste this code in the PARAM field in ShortKeeper, set your hotkey, save, and you’re ready to use your new keyboard shortcut.

Print this item