Jump to content

Recommended Posts

Posted

When I clicked on "OK" in pop-up windows, it will return error when I brought up windows-application from autoit "Run" function script, such as Run ("c:\a.exe").  Why?  Do I miss anything in Run function, e.g.     Run ("c:\a.exe")

any idea?

But when I ran my windows application "a.exe" manually and click on "OK" in pop-up windows, then it showed menu and did not return error.

 

Pop-up-windows-pic1.png

Got-problem-from-Autoit-Run-command.png

display-menu-after-click-on-OK.png

Posted

 

  On 1/21/2016 at 11:18 PM, PhilipDiep said:

click on "OK" in pop-up windows

Expand  

Exactly - which one ??
Be more specyfic.

mLipok

 

btw.

:welcome: to the AutoIt forum.

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

When I ran the windows application manually without running from autoit script, the windows application came up with the "OK" popup window, then I clicked on "OK", it will display the menu GUI.

My AutoIt-script has only one statement as "Run ("C:\a.exe")", and just ran it.

But, if I ran the autoit script with the "Run ("c:\a.exe")" statement from Autoit SciTE-script-editor, my window-application came up with the "OK" pop-up windows.   When I clicked on "OK" in the pop-up windows, it returned in an error pop-up window, indicated that "A problem caused the program to stop working correctly, Please close the program" error message.   I did not have this problem when I run my window-application manually.

It seems to me that Run function in Autoit could not run my window-application properly and brought it up properly.  But I did not know how to fix it in autoit Run function.  Did I miss anything in Autoit scripting ?

Posted

After I added the working directory in Run function, as :

Run("C:\APP-test\TEST\APP.exe", "C:\APP-test\TEST", @SW_SHOWMAXIMIZED)

It works now and did not return any error or caused any problem.

Thanks for your help !!

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...