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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 236
» Latest member: abdulahad
» Forum threads: 61
» Forum posts: 152

Full Statistics

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

Latest Threads
Keyboard Shortcut - Highl...
Forum: Keyboard shortcuts with AutoHotkey code
Last Post: HunterBryan
07-11-2022, 10:07 AM
» Replies: 1
» Views: 4,966
Keyboard Shortcut - Launc...
Forum: Keyboard shortcuts with AutoHotkey code
Last Post: pilot888
04-18-2022, 02:24 PM
» Replies: 6
» Views: 7,708
Keyboard Shortcut - Go to...
Forum: Keyboard shortcuts with AutoHotkey code
Last Post: denilama
03-16-2022, 12:22 PM
» Replies: 2
» Views: 6,417
Enterpad Tips - Do Multip...
Forum: The Enterpad corner
Last Post: janamacon
09-29-2021, 08:18 AM
» Replies: 2
» Views: 9,711
Pay by mastercard
Forum: The Enterpad corner
Last Post: Jinonisie
07-19-2021, 07:51 AM
» Replies: 2
» Views: 8,917
Keyboard Shortcut - Get G...
Forum: Keyboard shortcuts with AutoHotkey code
Last Post: bratpits
06-26-2021, 07:12 AM
» Replies: 3
» Views: 8,117
Enterpad with new compute...
Forum: The Enterpad corner
Last Post: denilama
10-12-2020, 08:30 AM
» Replies: 9
» Views: 34,860
Keyboard Shortcut - Auto ...
Forum: Keyboard shortcuts with AutoHotkey code
Last Post: denilama
09-23-2020, 10:12 AM
» Replies: 2
» Views: 10,726
Pre Sales Template Questi...
Forum: The Enterpad corner
Last Post: denilama
08-20-2020, 12:45 PM
» Replies: 1
» Views: 6,896
Keyboard Shortcut - Find ...
Forum: Keyboard shortcuts with AutoHotkey code
Last Post: pilot888
07-27-2020, 12:58 PM
» Replies: 0
» Views: 1,655

 
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