IEClickTag Halts MS Execution

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
fightcancer
Macro Veteran
Posts: 260
Joined: Fri Apr 15, 2005 8:32 am

IEClickTag Halts MS Execution

Post by fightcancer » Mon Feb 18, 2013 7:53 pm

Version: 14.0.4

The following code seems to halt macro execution indefinitely after the 2nd line so that line 3 never executes without manual intervention to close IE's file browser popup box.

Code: Select all

IEGetFromURL>tinypic.com,myIERef
IEClickTag>myIERef,,,INPUT,NAME,the_file,result
Message>result
How do I fix it so that MS will continue and not halt macro execution?

Here's the webpage I'm working with.
http://tinypic.com/

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Tue Feb 19, 2013 8:23 am

If the ClickTag fires an event which causes a web browser popup then that event does not return until the popup is closed and therefore ClickTag does not return until then either. Unfortunately that is the way these web events work. The only workaround would be to not use ClickTag and instead use a keystroke, you could use IEtagEvent.. To focus the tag and then send enter, or use image recognition etc.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

fightcancer
Macro Veteran
Posts: 260
Joined: Fri Apr 15, 2005 8:32 am

Post by fightcancer » Fri Feb 22, 2013 9:58 pm

Thanks very much!! I'm using IEGetTags, IETagEvent and Send. Works great!

However, is there any way to get the script to pause until the first pic is done uploading and then continue? Thanks again!

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts