Modify

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#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, 18 years ago

Forgot one thing:
Win 2000 SP4 English

comment:2 by J-Paul Mesnage, 18 years ago

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 J-Paul Mesnage, 18 years ago

Cc: Win2000 SP4 UK added

comment:4 by (none), 18 years ago

Milestone: 3.2.11.0

Milestone 3.2.11.0 deleted

comment:5 by Wooltown, 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 J-Paul Mesnage, 18 years ago

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

in reply to:  5 comment:7 by J-Paul Mesnage, 18 years ago

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, 18 years ago

Milestone: Future Release

comment:9 by Jon, 18 years ago

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.