SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
WindowFind Error

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
WindowFind Error
Author Message
Jeff Leu



Joined: 01 May 2002
Posts: 2

Post WindowFind Error Reply with quote

I have a script that uses the WindowFind command to activate a window. When the window dosen't exist the script errors out and stops running. Is there a way to check for the window first before running the WindowFind command so it dosen't terminate the script.

Wed Jul 17, 2002 1:50 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: WindowFind Error Reply with quote

Use error handling methods

For example

... first part of your script goes here ...

OnErrorGoto NOT_FOUND
WindowFind ...
OnErrorStop

... here goes logic for the found window
Exit

NOT_FOUND:
... if we get here, the window can not be found

: I have a script that uses the WindowFind command to activate a window. When
: the window dosen't exist the script errors out and stops running. Is there
: a way to check for the window first before running the WindowFind command
: so it dosen't terminate the script.

Wed Jul 17, 2002 2:00 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.