Jump to content

Newbie Help


Guest CunningFox
 Share

Recommended Posts

Guest CunningFox

Hi all,

I discovered AutoIt on Friday and am using it to help with new PC roll outs we are doing at work. However, I'm having a little problem when trying to Auto add network printers (via local printer, new tcp/ip port etc).

When the option to chose for network or local printer, I select local printer, what I then need it to check whether the 'plug and play' check box is checked or not and uncheck it if it is.

Checking or Unchecking it isn't a problem, however, when I try to read if it's currently checked I fail miserably :dance:. I'm using GUICtrlRead on the checkbox and it always returns 0.

I've had a quick search on the forum and can't find anything that helps. I know it's possible to do this via rundl32 but thats not really the piont when you are trying to learn something else :whistle:.

Any help please?

thanks.

Link to comment
Share on other sites

Guest CunningFox

Try to find out the checked state with ControlCommand and its command "IsChecked".

That should return a value you can evaluate.

<{POST_SNAPBACK}>

Magic :whistle:

Many thanks.

Link to comment
Share on other sites

Hi,

You may try the freeware utility ( http://www.winsite.com/bin/Info?9000000036378 )

good luck

Hi all,

I discovered AutoIt on Friday and am using it to help with new PC roll outs we are doing at work. However, I'm having a little problem when trying to Auto add network printers (via local printer, new tcp/ip port etc).

When the option to chose for network or local printer, I select local printer, what I then need it to check whether the 'plug and play' check box is checked or not and uncheck it if it is.

Checking or Unchecking it isn't a problem, however, when I try to read if it's currently checked I fail miserably :dance:. I'm using GUICtrlRead on the checkbox and it always returns 0.

I've had a quick search on the forum and can't find anything that helps. I know it's possible to do this via rundl32 but thats not really the piont when you are trying to learn something else :whistle:.

Any help please?

thanks.

<{POST_SNAPBACK}>

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...