I used a two-part process that mimics the way most people setup their FF macros to execute windower scripts for equip swaps.
First, create a txt file in your scripts directory; I called mine screenshot.txt. In it all you put Sono's code:
Code:
input /names
screenshot png hide
wait 1;
input /names
You can change the png to jpg if you prefer. Then once that's sitting in your scripts folder you edit the init.txt to set the bind on the screenshot key to:
Code:
bind sysrq exec screenshot.txt
So now pressing the sysrq key executes the script.