Jump to content
Sign in to follow this  

Press "Start" button in a script

Recommended Posts

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:


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 <<<<





Advanced (Class):





ControlClick Coords:




>>>> 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


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?


You can start with:

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

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...