Modify

Opened 17 years ago

Closed 17 years ago

Last modified 17 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 Changed 17 years ago by anonymous

Forgot one thing:
Win 2000 SP4 English

comment:2 Changed 17 years ago by Jpm

  • Owner set to WaitingUserInfo
  • Status changed from new to 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 Changed 17 years ago by Jpm

  • Cc Win2000 SP4 UK added

comment:4 Changed 17 years ago by anonymous

  • Milestone 3.2.11.0 deleted

Milestone 3.2.11.0 deleted

comment:5 follow-up: Changed 17 years ago by 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.

comment:6 Changed 17 years ago by Jpm

  • Cc Win2000 SP4 UK removed
  • Keywords Win2000 SP4 UK added

comment:7 in reply to: ↑ 5 Changed 17 years ago by Jpm

  • Resolution set to rejected
  • Status changed from assigned to 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 Changed 17 years ago by Jon

  • Milestone set to Future Release

comment:9 Changed 17 years ago by Jon

  • Milestone Future Release deleted

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The owner will remain WaitingUserInfo.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.