bshoenhair 0 Posted August 8, 2004 I can't get the Run function flags to work in the latest update, anyone else having this problem ? Share this post Link to post Share on other sites
Jon 1,009 Posted August 8, 2004 I can't get the Run function flags to work in the latest update, anyone else having this problem ? You mean the window state flags? I'll check it out (that particular function needed lots of editing so defintately possible that it got mangled...) Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Share this post Link to post Share on other sites
Jon 1,009 Posted August 8, 2004 You mean the window state flags? I'll check it out (that particular function needed lots of editing so defintately possible that it got mangled...) They seem to be working here, got an example? Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Share this post Link to post Share on other sites
bshoenhair 0 Posted August 9, 2004 They seem to be working here, got an example? <{POST_SNAPBACK}>Dim autoIt As New AUTOITX3Lib.Control autoIt.Run "notepad.exe", "", autoIt.AU3_SW_MAXIMIZE If I use "." for the working dir it will work but shouldn't a blank sting "" for the working dir also work like it does in AutoIt ? Share this post Link to post Share on other sites
Jon 1,009 Posted August 9, 2004 (edited) In AutoIt: Run("notepad.exe", ".") Run("notepad.exe", "") Gives me the same results as do these in AutoItX: oAutoIt.Run("notepad.exe", ".") oAutoIt.Run("notepad.exe", "") When you say it doesn't work, what do you mean? Edited August 9, 2004 by Jon Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Share this post Link to post Share on other sites
bshoenhair 0 Posted August 9, 2004 In AutoIt: Run("notepad.exe", ".") Run("notepad.exe", "") Gives me the same results as do these in AutoItX: oAutoIt.Run("notepad.exe", ".") oAutoIt.Run("notepad.exe", "") When you say it doesn't work, what do you mean? <{POST_SNAPBACK}>Try this, it will not maximize autoIt.Run "notepad.exe", "", autoIt.AU3_SW_MAXIMIZE Does it work for you ? Share this post Link to post Share on other sites
Jon 1,009 Posted August 9, 2004 That's freaky, I tested maximized yesterday (oAutoIt.SW_MAXIMIZE) and it worked, but it's not working here now. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Share this post Link to post Share on other sites
Jon 1,009 Posted August 9, 2004 (edited) That's freaky, I tested maximized yesterday (oAutoIt.SW_MAXIMIZE) and it worked, but it's not working here now. Fixed and uploaded. Rookie error. Tested with: value = oAutoIt.Run ("notepad.exe", "", oAutoIt.SW_MAXIMIZE) Edited August 9, 2004 by Jon Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Share this post Link to post Share on other sites