Opened 15 years ago
Last modified 15 years ago
#1060 closed Bug
Run return 0, but failed — at Initial Version
Reported by: | anonymous | Owned by: | Jon |
---|---|---|---|
Milestone: | 3.3.1.4 | Component: | AutoItX |
Version: | 3.3.0.0 | Severity: | Blocking |
Keywords: | Cc: |
Description
When I use a long argument(more than 120 char) for functions:
Run, RunWait etc, ExitCode off started programm always = 0, but programm not started.
An examples (ex1-work, ex2 doesnt):
ex1:
[CODE]
Set oAutoIt = WScript.CreateObject("AutoItX3.Control")
val = oAutoIt.RunWait("calc.exe anParamThatLessThan120Char", "C:\WINDOWS", oAutoIt.SW_MAXIMIZE)
' script waits until Notepad closes
WScript.Echo "Program returned with exit code:" & val
CODE
Result: Calc started
ex2:
[CODE]
Set oAutoIt = WScript.CreateObject("AutoItX3.Control")
val = oAutoIt.RunWait("calc.exe anParamThatMoreThan120CharForExample121charAndEtc_forCheckThisMakeThisStringLEnMoreThan120charsRealyMoreThan120ThankForYourSupport", "C:\WINDOWS", oAutoIt.SW_MAXIMIZE)
' script waits until Notepad closes
WScript.Echo "Program returned with exit code:" & val
CODE
Result: cals isnt started, but Msbox says that calc returns 0 as exitcode
Thanks