Guest CunningFox Posted September 5, 2005 Share Posted September 5, 2005 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 . 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 . Any help please? thanks. Link to comment Share on other sites More sharing options...
Raindancer Posted September 5, 2005 Share Posted September 5, 2005 Try to find out the checked state with ControlCommand and its command "IsChecked". That should return a value you can evaluate. Say: "Chuchichäschtli"My UDFs:_PrintImage UDF_WinAnimate UDFGruess Raindancer Link to comment Share on other sites More sharing options...
Guest CunningFox Posted September 5, 2005 Share Posted September 5, 2005 Try to find out the checked state with ControlCommand and its command "IsChecked".That should return a value you can evaluate.<{POST_SNAPBACK}>Magic Many thanks. Link to comment Share on other sites More sharing options...
Piet Posted September 5, 2005 Share Posted September 5, 2005 Hi,You may try the freeware utility ( http://www.winsite.com/bin/Info?9000000036378 )good luckHi 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 . 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 .Any help please?thanks.<{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
Raindancer Posted September 5, 2005 Share Posted September 5, 2005 Posting Ads? Say: "Chuchichäschtli"My UDFs:_PrintImage UDF_WinAnimate UDFGruess Raindancer Link to comment Share on other sites More sharing options...
Piet Posted September 6, 2005 Share Posted September 6, 2005 No! Just trying to help...Posting Ads?<{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
Raindancer Posted September 6, 2005 Share Posted September 6, 2005 Sorry... Had bad mood Say: "Chuchichäschtli"My UDFs:_PrintImage UDF_WinAnimate UDFGruess Raindancer Link to comment Share on other sites More sharing options...
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