Opened on Jan 8, 2008 at 3:19:01 PM
Closed on Jan 8, 2008 at 8:55:40 PM
Last modified on Jan 8, 2008 at 10:30:38 PM
#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:2 by , on Jan 8, 2008 at 3:41:24 PM
| 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 , on Jan 8, 2008 at 3:44:35 PM
| Cc: | added |
|---|
follow-up: 7 comment:5 by , on Jan 8, 2008 at 6:08:14 PM
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 , on Jan 8, 2008 at 6:39:03 PM
| Cc: | removed |
|---|---|
| Keywords: | Win2000 SP4 UK added |
comment:7 by , on Jan 8, 2008 at 8:55:40 PM
| 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 , on Jan 8, 2008 at 9:53:44 PM
| Milestone: | → Future Release |
|---|
comment:9 by , on Jan 8, 2008 at 10:30:38 PM
| Milestone: | Future Release |
|---|

Forgot one thing:
Win 2000 SP4 English