Modify

#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 anonymous, on Jan 8, 2008 at 3:40:03 PM

Forgot one thing:
Win 2000 SP4 English

comment:2 by Jpm, on Jan 8, 2008 at 3:41:24 PM

Owner: set to WaitingUserInfo
Status: newassigned

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 Jpm, on Jan 8, 2008 at 3:44:35 PM

Cc: Win2000 SP4 UK added

comment:4 by (none), on Jan 8, 2008 at 3:52:59 PM

Milestone: 3.2.11.0

Milestone 3.2.11.0 deleted

comment:5 by Wooltown, 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 Jpm, on Jan 8, 2008 at 6:39:03 PM

Cc: Win2000 SP4 UK removed
Keywords: Win2000 SP4 UK added

in reply to:  5 comment:7 by Jpm, on Jan 8, 2008 at 8:55:40 PM

Resolution: rejected
Status: assignedclosed

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 Jon, on Jan 8, 2008 at 9:53:44 PM

Milestone: Future Release

comment:9 by Jon, on Jan 8, 2008 at 10:30:38 PM

Milestone: Future Release

Modify Ticket

Action
as closed The owner will remain WaitingUserInfo.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.