Title

Message

Confirm

Want to earn a free ClipboardFusion Pro license? We're looking for ClipboardFusion translators!
<< DiscussionsReply

Stringing macros together based on copied text

Avatar from Gravatar.com
Leon André Bergman
47 discussion posts
Hi. I'm looking for a way to make my macros a bit smarter.
I would like to make a macro copy a text from a field in a form (I already have this set up) and use this text to decide what macro to run.

So say I copy text A, the macro will run the next macro named A.
If the text is B, then it will run Macro B, and so on.

Is this possible?
Aug 15, 2019  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Sure! There are a couple of ways you could do this. You could create Trigger rules that look for the specific text and then run the appropriate Macro.

Alternatively, you could do it in a Macro, like this:

Code

Aug 15, 2019 (modified Aug 15, 2019)  • #2
Avatar from Gravatar.com
Leon André Bergman
47 discussion posts
I'm sorry for the late reply. That seems to work perfectly. Thank you very much.
27 days ago  • #3
Keith Lammers (BFS)'s profile on WallpaperFusion.com
No worries, glad to hear it!
26 days ago  • #4
Avatar from Gravatar.com
Leon André Bergman
47 discussion posts
I've finaly had time to try and implement this into my workflow, but it's not actually working now.

I've set it up like this.

Code



It is able to move the mouse to the correct position, mark the text, and copy it(i assume), but it's not running the macro, even though the copied text contains "ping"
It's not doing anything. It just ends without any errors.
17 days ago  • #5
Thomas Malloch (BFS)'s profile on WallpaperFusion.com
I put together something that should work for you. All I did was modify your code a little.

The reason your Macro wasn't working is because when a Macro is run, the "text" variable contains the text that was in the Clipboard at the time when the Macro first runs. It doesn't change again automatically, unless you change it yourself :).

So the only real change I made to your Macro was on line 12. I change the

Code


to

Code



Anyways, here's the code!

Code

13 days ago  • #6
Was this helpful?  Login to Vote  Login to Vote
<< DiscussionsReply