Notifications
Clear all

[Closed] Possible to get picture from Print Screen?

Is it possible to print the screen and get this picture in maxscript?
Or to get a picture from the clip board? So if the user has pressed print screen I could get it that way?

Also is it possible to get the picture size from a picture that is on the harddrive. Currenly I have to load the picture first and this is a terrible waste of CPU power.

It would be useful to have for my notes and pictures plugin.
/Andreas

4 Replies

About the capture stuff check Maxscript help for:
getViewportDib() – gw

For bitmap size info check Maxscript help for:
<bitmap>.height
<bitmap>.width

Hope it helps.

Hiya, thanks for the reply, but it’s not what I’m asking about.
You see I don’t want to load the bitmap into memory first, and with your method I have to do this, or so I think. What I want to do is just get the attributes from a bitmap on disk without loading it first.

Also the getViewport will only get the active viewport, that is not what I want I want to get the whole screen so the menus too. This will not take a snapshot of the menus.

/Andreas

Try the avguard extension from Larry Minton. It exposes some clipboard functionality to maxscript. Not sure if this works with bitmaps as well, but I think it does.

Check maxplugins.de

  • Martijn

Cool, that will be interesting to see. Perhaps they have more functions I need. Hope they are stable enough.
/Andreas