Changes between Initial Version and Version 1 of Ticket #1060


Ignore:
Timestamp:
07/08/09 19:03:02 (12 years ago)
Author:
Valik
Comment:

Please read WikiStart to learn how to properly post code on the issue tracker. In case you didn't notice: This isn't the forum.

Now, as for the ticket itself... okay, and? The documentation clearly states to check the error property on the AutoItX3 object to see if a call to Run() or RunWait() failed. I don't see you checking that property so the return value of 0 is expected.

Finally, I am pretty sure this is not a bug. There are OS-imposed limits on the length of the command line and its parameters. I'll test it but I don't expect to find a problem in AutoIt(X).

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1060 – Description

    initial v1  
    44An examples (ex1-work, ex2 doesnt):
    55ex1:
    6 [CODE]
     6{{{
    77Set oAutoIt = WScript.CreateObject("AutoItX3.Control")
    88val = oAutoIt.RunWait("calc.exe anParamThatLessThan120Char", "C:\WINDOWS", oAutoIt.SW_MAXIMIZE)
    99' script waits until Notepad closes
    1010WScript.Echo "Program returned with exit code:" & val
    11 [/CODE]
     11}}}
    1212Result: Calc started
    1313
    1414ex2:
    15 [CODE]
     15{{{
    1616Set oAutoIt = WScript.CreateObject("AutoItX3.Control")
    1717val = oAutoIt.RunWait("calc.exe anParamThatMoreThan120CharForExample121charAndEtc_forCheckThisMakeThisStringLEnMoreThan120charsRealyMoreThan120ThankForYourSupport", "C:\WINDOWS", oAutoIt.SW_MAXIMIZE)
    1818' script waits until Notepad closes
    1919WScript.Echo "Program returned with exit code:" & val
    20 [/CODE]
     20}}}
    2121
    2222Result: cals isnt started, but Msbox says that calc returns 0 as exitcode