String copy and paste - web address and more

Hi,

I have three questions as below.
Q1 :
I need strings like below.
http://www.aaa.com/order_id= 2200857

"http://www.aaa.com/order_id=" is fixed address.
2200857 is in the clip board

How can I combine these two. If could, I can copy the number into clip board and run whole address by pressing assigned hot key.

Q2 :
https://www.aaa.com/mypage/order-list?pagesize=&status_sub=&paged=&service=&service_id=&rsdate=2019-08-03&redate=2019-11-01&all_yn=n&svalue=&pname=000

Same way as Q1. And there are two variables.
2019-08-03 is three months back string from today.
2019-11-01 is today's value/data.

By assigning and pressing hot key, I do not need to click every time for date or other option.

Q3 :
send sms to 010-222-3333 by pressing hot key.
Assuming 010-222-3333 is in clip board, how can i run SMS message instead run sms application and edit/paste phone number in relevant field.

Many thanks in advance for your help. I am surprised to see many possibilities of automation by using this tool,

MACRO:   Using KM Variables [Example]

**Requires: KM 8.2.4+   macOS 10.11 (El Capitan)+**
(Macro was written & tested using KM 9.0+ on macOS 10.14.5 (Mojave))

#### DOWNLOAD Macro File:
<a class="attachment" href="/uploads/default/original/3X/7/a/7a1d908fc27e0375428babd0b8f91829337e3149.kmmacros">Using KM Variables [Example].kmmacros</a>
**Note: This Macro was uploaded in a DISABLED state. You must enable before it can be triggered.**


---


<img src="/uploads/default/original/3X/8/a/8a5cf81d3c4acddafb8075e9aa069459d92519f5.png" width="577" height="715">

[quote="glore, post:1, topic:15946"]
Q2 :
https://www.aaa.com/mypage/order-list?pagesize=&status_sub=&paged=&service=&service_id=&rsdate=2019-08-03&redate=2019-11-01&all_yn=n&svalue=&pname=000

Same way as Q1. And there are two variables.
2019-08-03 is three months back string from today.
2019-11-01 is today's value/data.
[/quote]

Note how the two KM Variables are combined with the other text of the order list URL:

![image|690x140](upload://dFIJB4PDNCWZ832uGxJNx5xQKKQ.png) 

OK, here's the complete Macro that addresses both questions

`~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`

### Example Output
![image|690x193](upload://1aL8xOjBGm0w1LCCoaCIomBIvxG.png) 

---

### MACRO:&nbsp;&nbsp;&nbsp;Using KM Variables [Example]

~~~ VER: 1.0&nbsp;&nbsp;&nbsp;&nbsp;2019-10-31 ~~~
**Requires: KM 8.2.4+&nbsp;&nbsp;&nbsp;macOS 10.11 (El Capitan)+**
(Macro was written & tested using KM 9.0+ on macOS 10.14.5 (Mojave))

#### DOWNLOAD Macro File:
<a class="attachment" href="/uploads/default/original/3X/f/4/f46f4d5605f905b8b90b502c666879cffd8a2a4d.kmmacros">Using KM Variables [Example].kmmacros</a>
**Note: This Macro was uploaded in a DISABLED state. You must enable before it can be triggered.**


---


<img src="/uploads/default/original/3X/5/c/5c5b288fd68aec7514f161e47b7a8bf030dbd2d9.png" width="654" height="1964">

Questions?
1 Like

Dear JMichaelTX,

Many thanks for quick answer .
I’m not familiar with KM yet so I need sometime to digest.
I will ask again if I need some explanation.

Regards,
CJ

No problem.

Getting Started with Keyboard Maestro

For more help, see Getting Started with Keyboard Maestro and the Forum .

Hi,
Thanks for all the information.

As said, I’m new and need some time to study.

I downloaded macro file and ran the macro. Nothing happen, I guess i do not know how to do it.
I need the combined strings on broswer like Chrome.
My goal is by pressing hot key and go directly to the url which was combined in macro.

Should I can open Chrome tap on top of the macro and assign hot key?

Sorry for bugging

Regares

Make sure both the Macro and the Macro Group it is in, are ENABLED, and will be Active for your target app.

The macros provided are just examples to give you an idea of how to build the macro you want.
You will need to customize and add triggers to work with your workflow.