Sign in to follow this  
Followers 0
AntonioGNAL

Press "Start" button in a script

7 posts in this topic

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.

Share this post


Link to post
Share on other sites



There is no Start. Try Send("#").


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites

If there is no way to press the start button, could you tell me how to launch printers and faxes in a script?

Thanks!!

Share this post


Link to post
Share on other sites

Hi.

Wrong approach ;-)

Google: printui.dll add printer command line.

Regards, Rudi.


Earth is flat, pigs can fly, and Nuclear Power is SAFE!

Share this post


Link to post
Share on other sites

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 /?")

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

You can start with:

Run("Rundll32 Printui.dll,PrintUIEntry /?")

Thank you so much, this worked:

Run("Rundll32 Printui.dll,PrintUIEntry /il")

:graduated:

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