Sign in to follow this  
Followers 0
p)(d

how to print a gui

7 posts in this topic

#1 ·  Posted (edited)

hi,

i have a autoit gui with some labels.

is it possible to print the gui with right klick menu?

menu is no problem, but printing?

Edited by p)(d

SYS 64738

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

I dont understand what you mean by "Print", Define "Print".


# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

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

Share this post


Link to post
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
Sign in to follow this  
Followers 0