AntonioGNAL Posted September 23, 2011 Posted September 23, 2011 Hello everyone, I'm completely new to AutoIt and i would like to create a script to automatically create a windows print queue going through Start >> Control Panel >> Printers and Faxes ... Add printer, and so on. The thing is i'm unable to start because i don't know how to send the Press Start Button command in the script. I thought it might work as: Send("{START}") But it doesn't. I'm sending Key pushes like that and they work fine, but not with the Start (Windows) button. With the AutoIt info tool i can see the following data for that button: >>>> Window <<<< Title: Start Class: Button Position: 0, 1003 Size: 66, 46 Style: 0x94000C00 ExStyle: 0x00080088 Handle: 0x000000000001007E >>>> Control <<<< Class: Instance: ClassnameNN: Name: Advanced (Class): ID: Text: Position: Size: ControlClick Coords: Style: ExStyle: Handle: >>>> Mouse <<<< Position: 34, 1031 Cursor ID: 0 Color: 0xF8DB82 >>>> StatusBar <<<< >>>> ToolsBar <<<< >>>> Visible Text <<<< >>>> Hidden Text <<<< Can anyone help me? Thanks a lot.
somdcomputerguy Posted September 23, 2011 Posted September 23, 2011 There is no Start. Try Send("#"). - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change.
AntonioGNAL Posted September 23, 2011 Author Posted September 23, 2011 If there is no way to press the start button, could you tell me how to launch printers and faxes in a script? Thanks!!
rudi Posted September 23, 2011 Posted September 23, 2011 Hi. Wrong approach ;-) Google: printui.dll add printer command line. Regards, Rudi. Earth is flat, pigs can fly, and Nuclear Power is SAFE!
JoHanatCent Posted September 23, 2011 Posted September 23, 2011 If there is no way to press the start button, could you tell me how to launch printers and faxes in a script? Thanks!! You can start with: Run("Rundll32 Printui.dll,PrintUIEntry /?")
somdcomputerguy Posted September 23, 2011 Posted September 23, 2011 There is no Start. Try Send("#"). Oops, sorry, try this instead Send("^{ESC}"). - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change.
AntonioGNAL Posted September 26, 2011 Author Posted September 26, 2011 You can start with: Run("Rundll32 Printui.dll,PrintUIEntry /?") Thank you so much, this worked: Run("Rundll32 Printui.dll,PrintUIEntry /il")
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