Intelligent Automation & Macro Software  

Go Back   Tethys Solutions Forums > Products Zone > Workspace Macro Pro - Automation Edition
Register FAQ Search Today's Posts Mark Forums Read

Workspace Macro Pro - Automation Edition Post messages and questions related to Macro Software for Windows Automation here.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-10-2007, 06:51 AM
ronatola ronatola is offline
Junior Member
 
Join Date: Jul 2007
Posts: 5
Default Close All Windows Command - doesn't always work

This command doesn't always work. Especially if a dialog box is open on a webpage.
I run 10 macros in a batch. At the end of each one I have a 'close all windows' command. However if one of the macros is accessing a webpage and is entering pre-populated information too quickly (as quite often happens - ie a phone number entered by macro pro as 999-999-123 instead of 999-999-1234) the webpage will produce a popup dialog box stating something like 'you have entered the phone # in an incorrect format'.
This shouldn't be a problem, if my main objective here is to flow to the next macro, because I have a 'close all windows' command to clean everything up for the next macro.
However, the command doesn't close these dialog boxes all the time, and therefore it messes up all of the remaining macros in the batch beacuse they don't start cleanly with the open dialog box in their way.
Reply With Quote
  #2 (permalink)  
Old 07-10-2007, 09:21 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 474
Default

Hello,

This is strange if 'Close All Windows' does not close all windows. I tried
at my end and experienced that if there is some delay before 'Close All
Windows' command it will close all the open windows. But, it won't be
closing windows which will ask for any kind of confirmation to close. For
e.g. you edit a text file, and try to close, it will ask for some
confirmation if you want to save the file or not. In IE7, if more than one
tabs in one window are opened, it will ask if you want to close all the
tabs.

Try adding some delays, say 3 seconds delay before 'Close all Windows'
command and try again. You can also use 'If Window Exists' command to close
any pop window if it exists before running the next macro.

Hope that helps.
Reply With Quote
  #3 (permalink)  
Old 07-10-2007, 09:29 AM
ronatola ronatola is offline
Junior Member
 
Join Date: Jul 2007
Posts: 5
Default

I already have a delay of 4 seconds in front of every 'close all windows' command, so that won't help. What I'm after is the dialog boxes that need some input like 'enter' or a mouse click. I cannot account for all of these, since I cannot predict which dialog box will appear.
I guess what I need is some sort of KILL ALL command that will obliterate everything regardless of what app/window/prompt it is - to setup a clean slate for the next macro.
Reply With Quote
  #4 (permalink)  
Old 07-10-2007, 09:45 AM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 474
Default

Hello,

In that case where you are not sure which dialog box will appear what you can do is try to apply Alt+F4 key combination on 'Currently Active Window'.

Hope that helps.
Reply With Quote
  #5 (permalink)  
Old 07-10-2007, 12:10 PM
ronatola ronatola is offline
Junior Member
 
Join Date: Jul 2007
Posts: 5
Default

but if i use alt-f4 and there is no dialog box, it will close my desired webpage. the dialog box only appears intermittintly as i stated if and when the macro runs too fast, thus missing characters.
i guess i could always setup a macro to run a forced reboot of the whole system to clean it out - but that seems abit over the top.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 09:24 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc.
Copyright © 2003-2008 Tethys Solutions, LLC. All rights reserved