alexischeng Posted June 28, 2004 Posted June 28, 2004 (edited) How can I print in GUI Mode? Edited June 28, 2004 by alexischeng
pekster Posted June 29, 2004 Posted June 29, 2004 Do you just want text in your GUI box? If so, try a label. Example: GUICreate("Example GUI", 200, 50) GuiSetControl("label", "Here is a label", 0, 0, 100, 20) GuiShow() GUIWaitClose() [font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes.
alexischeng Posted June 30, 2004 Author Posted June 30, 2004 I want to have control to print to the printer!
pekster Posted June 30, 2004 Posted June 30, 2004 Talking to a printer and a GUI are two compleatly different things. First of all, there is no "GUI mode." You can create a GUI to display controls, and ask for user input. You can use things such as buttons, labels, checkboxes, menus, etc. I don't believe AutoIt can directally talk to a printer. However, you could automate the printing from within an application. Most apps use the Control-p key to print, so try using Send or ControlSend to send the Control-p key, and any other required keys to hit OK to any print confirmation boxes. [font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now