Jump to content

how to print a gui


p)(d
 Share

Recommended Posts

the gui changes - various graphics / labels / ...

now i want a function to print itself.

$contextmenu = GUICtrlCreateContextMenu ()

$printitem = GUICtrlCreateMenuitem ("Print", $contextmenu)

maybe i have to make a loop to read the color of each pixel and create a bitmap?

SYS 64738

Link to comment
Share on other sites

i start my autoit gui

then i push some buttons on it

the gui creates some labels and graphics

i want to get it now to a printer

at this time i press "AltGr+Print" on my keyboard - then insert into paint.exe and send it to my printer.

SYS 64738

Link to comment
Share on other sites

i start my autoit gui

then i push some buttons on it

the gui creates some labels and graphics

i want to get it now to a printer

at this time i press "AltGr+Print" on my keyboard - then insert into paint.exe and send it to my printer.

Send("!{PRINTSCREEN}")

That will do a print screen of the active window. Now just need to figure out how to send what is in the clipboard to the printer. Check out http://msdn.microsoft.com/library/default....ntspol_2ik4.asp

And here http://www.autoitscript.com/forum/index.ph...mp;hl=printing#

Edited by powaking
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...