Sign in to follow this  
Followers 0
bshoenhair

Run Function Flags No Longer Work ?

8 posts in this topic

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



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

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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

#5 ·  Posted (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 by Jon

Share this post


Link to post
Share on other sites

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

#8 ·  Posted (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 by Jon

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