on MouseUP import snapshot from rect (rect of this stack) export last image to URL "binfile:immagine1.jpg" as JPEG delete image NUMIMM choose browse tool end MouseUP This is two lines shorter...and I believe will work.