#11 closed Bug (Rejected)
WinWaitActive error
| Reported by: | wooltown | Owned by: | WaitingUserInfo |
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | 3.2.10.0 | Severity: | |
| Keywords: | Win2000, SP4, UK | Cc: |
Description
The following code doesn't give an error, it just waits eternally,
the ")" after "Connected" is erratic, but it is accepted by AutoIT.
AutoIT should complain about it.
If WinWaitActive("MEs Connected"),"",5) Then
Run ("pstools\pskill.exe javaw.exe","",@SW_HIDE)
EndIf
Attachments (0)
Change History (9)
comment:1 by , 18 years ago
comment:2 by , 18 years ago
| Owner: | set to |
|---|---|
| Status: | new → assigned |
I don't understand where the MEs connected comes from?
Do you mean that after 5 sec the script does not go on if the specified windows is not active.
comment:3 by , 18 years ago
| Cc: | added |
|---|
follow-up: 7 comment:5 by , 18 years ago
There is a right parenthesis too much in the line, but AutoIT doesn't discover that when interpreting the script.
"MEs Connected" is the name of the window it is waiting for to be active.
My mistake when coding: I didn't discover the right parenthesis to the right of "MEs Connected". and AutoIT didn't complain - and should complain !
I wrote in my script: If WinWaitActive("MEs Connected"),"",5) Then
It should be: If WinWaitActive("MEs Connected","",5) Then
AutoIT should discover unbalanced parenthesis.
comment:6 by , 18 years ago
| Cc: | removed |
|---|---|
| Keywords: | Win2000 SP4 UK added |
comment:7 by , 18 years ago
| Resolution: | → rejected |
|---|---|
| Status: | assigned → closed |
Replying to Wooltown:
There is a right parenthesis too much in the line, but AutoIT doesn't discover that when interpreting the script.
"MEs Connected" is the name of the window it is waiting for to be active.
My mistake when coding: I didn't discover the right parenthesis to the right of "MEs Connected". and AutoIT didn't complain - and should complain !
I wrote in my script: If WinWaitActive("MEs Connected"),"",5) Then
It should be: If WinWaitActive("MEs Connected","",5) Then
AutoIT should discover unbalanced parenthesis.
I see I don't think we can do something as AutoIt detect error only when it execute something. In your case the WinWaitActive is valid and wait for ever before detecting the error. Au3check detect the error as it is not executing just syntax checking.
comment:8 by , 18 years ago
| Milestone: | → Future Release |
|---|
comment:9 by , 18 years ago
| Milestone: | Future Release |
|---|

Forgot one thing:
Win 2000 SP4 English