How Can We Help?
< All Topics

I want to save the clipboard at macro beginning and restore it at the end.

There are commands to write the clipboard to a variable, but I didn’t find the command to write back a variable to the clipboard. I want to save the clipboard at macro beginning and restore it at the end.

The first step is to save the clipboard contents to a text string variable. At the end of your macro use the Variable Modify String command to save the variable value to the clipboard. It would look like this:

Variable Set String %T[1]% from the clipboard contents
     Other macro steps  
Variable Modify String: Save %T[1]% to the clipboard

– Applies to: Macro Express and Macro Express Pro