I'd like to have a macro that combined two text strings into a variable that can be pasted into the address bar of Chrome.
As a newcomer to using variables in Keyboard Maestro, I'm having some trouble and could use some help. These are the steps I've outlined.
Get the URL from the currently active tab in Chrome.
Insert a text string to the beginning of URL copied above.
Replace the URL in the currently active tab with the new combined URL from above into the currently active tab and press Return.
Any help would be appreciated. Thank You
This action would add the current System Clipboard content to the current url and update the active URL.
Read about "Tokens". They can be access by clicking the "down arrow" to the right of the text field within the action.
You could add any "static" text between the center percent signs.
Thank you.
How would you add the text string I mentioned in my post to the start of the clipboard contents creating a new URL that combined the two strings?
Oh, you want to add a text string to the System Clipboard, then add that to the URL?
If the text string is static just type it in front of the Tokens:
If it varies add it as a variable:
Thank you, Ray.
This is what finally worked for me. I may be able to speed things up by fiddling with the Pauses but at least it works now.
Thank you.
Scott
Triggered by any of the following:- The exact case string “byp//” is typed (then deleted)
Will execute the following actions:- Type the ⌘L Keystroke
(Attachment image is missing)
(Attachment image is missing)
(Attachment image is missing)
(Attachment image is missing)
(Attachment image is missing)
(Attachment image is missing)
(Attachment image is missing)
(Attachment image is missing)
(Attachment image is missing)
(Attachment image is missing)
1 Like
Ray:
Thank you for your help.
This is the sequence that I was finally able to get working. I may be able to speed things up by fiddling with the Pauses.
Scott
(Attachment image is missing)
(Attachment image is missing)
(Attachment image is missing)
(Attachment image is missing)
(Attachment image is missing)
(Attachment image is missing)
(Attachment image is missing)
(Attachment image is missing)
(Attachment image is missing)
(Attachment image is missing)
Nige_S
June 23, 2022, 4:17pm
7
You'll be able to do this more easily by using KM's built-in Chrome-related actions and tokens. The %ChromeURL%
gets the URL of the active tab of the active Chrome window, while Set_Google_Chrome_URL
action sets the URL of the active tab of the active Chrome window to the URL you pass it thens loads the page.
So:
...should do what you want. One action, no pauses, no keystrokes.
Thanks. I modified as you suggested and also removed all of the Pauses and it worked fine. Thanks.