In Photoshop, there is a shortcut that does the following:
Ctrl + Alt + Shift + E — You’ll get a new layer at the top of the layer stack containing a merged representation of all visible layers (handy for sharpening adjustments, etc.).
I tried this in PSP X3 and it doesn't work. Does anyone know if it is even possible to do this in PSP? I know how to merge all the layers in PSP but all the merged layers then disappear. The Photoshop feature keeps all the visible layers and merges them into a combined merged visible layer. A great feature.
On the Script Toolbar (View> Toolbar> Script if not visible already) click the record button (big red dot in PSP X4). Now do your steps that you want to automate.
Edit> Copy Special> Copy Merged for the first step.
Edit> Paste as New Layer for the second step.
Save the script, name it.
Click View> Customize> Script tab. Find the script you just recorded, pick an icon to bind it to, click Bind. Then click and drag that Bound Script from the Bound Script box to the workspace (I'd go for the main toolbar but I think you can put it in a menu or whatever you'd like).
Now you can just click that icon, where ever you placed it, and the script will copy merged, paste as new layer. If you want it to be at the top layer someone else will need speak up and tell you the text to copy and paste into the script (text editor) to get that accomplished. Otherwise it will paste the new layer on top of whichever layer is active and you can just move that manually.