Jump to content

Run Function Flags No Longer Work ?


bshoenhair
 Share

Recommended Posts

  • Administrators

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...)
Link to comment
Share on other sites

  • Administrators

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

Link to comment
Share on other sites

  • Administrators

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

Link to comment
Share on other sites

  • Administrators

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