Clipboard and Execute File

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
charley
Newbie
Posts: 1
Joined: Wed Nov 30, 2022 3:49 pm

Clipboard and Execute File

Post by charley » Wed Nov 30, 2022 3:55 pm

Hi Guys, I'm super beginner and not familiar with code much. Here's what I'm trying to do and I'm confident it's a super simple question for most. I want to Press F12 and for it to take my clipboard content and search my gmail.
I know I can type this for example: ExecuteFile>https://mail.google.com/mail/u/0/?ogbl#search/
But after that code I need my search term that I would get from my clipboard. Like this below, but the code is definitely wrong:
ExecuteFile>https://mail.google.com/mail/u/0/?ogbl#search/--my clipboard content would go right after the forward slash here

I know I can use a getclipboard function, but how do I combine the execute file and get clip board functions together?

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1144
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: Clipboard and Execute File

Post by Dorian (MJT support) » Wed Nov 30, 2022 6:57 pm

Using Variables and When to use Percent Symbols (%variable%) will help you understand this.

To answer the specific question you're looking at something like this (you may need to edit the exact position I've placed the variable) :

Code: Select all

GetClipBoard>TheClipboard
ExecuteFile>https://mail.google.com/mail/u/0/?ogbl#search/%TheClipboard%
Here's a clipboard/variable example to help you understand (in case you didn't visit the above link) :

Code: Select all

//Let's put something in the clipboard (just for this example)
PutClipBoard>Dave

//Now let's get it out again
GetClipBoard>TheClipboard

//Now you'll see "Hello Dave"
Messagemodal>Hello %Dave%
Yes, we have a Custom Scripting Service. Message me or go here

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts