Print something out?

This forum is meant for posting anything related to Adventure Maker that doesn't fit in the other forums.Please post technical questions in the Technical Support Forum!

Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support

Print something out?

Postby dorianpa » Thu Jul 13, 2006 8:56 pm

I want to create a game where you can print a honor/document when the game finished. Is there any script code I can use? I want that the user can click on a printer so that this print a specific document

IT THERE ANY WAY????
thank you
dorianpa
dorianpa
Member
 
Posts: 44
Joined: Wed Oct 20, 2004 10:47 am

Postby Candle » Sun Sep 03, 2006 5:45 am

To print the contents of the current frame (including all the hotspots, text objects, and custom controls), use the following code:
LoadControl PictureBoxObject(1)
PictureBoxObject(1).Move 0,0,GetProjectWidth*15,GetProjectHeight*15
CaptureFrame(PictureBoxObject(1))
Set PictureBoxObject(1).Picture=PictureBoxObject(1).Image
PrinterObject.PaintPicture PictureBoxObject(1).Picture,1000,1000
PrinterObject.EndDoc
Please don't PM me questions, ask here in the forums!
``````````````
Between grand theft and a legal fee, there only stands a law degree.
User avatar
Candle
Administrator
 
Posts: 3056
Joined: Sat Feb 07, 2004 2:21 am
Location: Rudy's Bar


Return to Adventure Maker General Discussion

Who is online

Users browsing this forum: No registered users and 2 guests

cron