bshoenhair Posted August 8, 2004 Share Posted August 8, 2004 I can't get the Run function flags to work in the latest update, anyone else having this problem ? Link to comment Share on other sites More sharing options...
Administrators Jon Posted August 8, 2004 Administrators Share 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/ Link to comment Share on other sites More sharing options...
Administrators Jon Posted August 8, 2004 Administrators Share 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/ Link to comment Share on other sites More sharing options...
bshoenhair Posted August 9, 2004 Author Share 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 ? Link to comment Share on other sites More sharing options...
Administrators Jon Posted August 9, 2004 Administrators Share 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/ Link to comment Share on other sites More sharing options...
bshoenhair Posted August 9, 2004 Author Share 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 ? Link to comment Share on other sites More sharing options...
Administrators Jon Posted August 9, 2004 Administrators Share 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/ Link to comment Share on other sites More sharing options...
Administrators Jon Posted August 9, 2004 Administrators Share 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/ 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