Capturing the screen through scripting?


#1

Hi there,

I remember I successfully did this ages ago but I lost the script and I cant for the life of me figure it out now :frowning:
I just want to capture the screen and save it to a png file. Just wondering if someone could point me in the right direction.

Thanks,
Pete


#2

see mxs help -> gw.getViewportDib()

and How To … Create a Quick Preview


#3

Perfect, thanks!