Extraction commands produced by webrecorder crashing macrosh

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
rodukas
Newbie
Posts: 5
Joined: Thu Feb 02, 2006 12:09 pm

Extraction commands produced by webrecorder crashing macrosh

Post by rodukas » Fri Feb 03, 2006 10:15 am

Hello,

Thanks to your recent update, I am able to shoot queries on the Viajar.com website but I have great difficulties to capture the cheapest price.

In fact when I use the webrecorder functions, I grab all reference to the cheapest price, but when replaying the macro, depending on with tag I keep either it does not return anything or macrosheduler crashes with millions of popup errors until i kill the process.

Some others are more stable but given the destination the tag may target another part of the table and return useless text.

Apparently the following tags are generating errors:


//Modify buffer size if required ...
Let>FORM3_SIZE=255
LibFunc>hIE,ExtractTag,r,%IE[1]%,,FORM,3,0,FORM3
Let>FORM3=r_6

Let>TABLE12_SIZE=255
LibFunc>hIE,ExtractTag,r,%IE[0]%,,TABLE,12,0,TABLE12
Let>TABLE12=r_6


I don't understand why basic script made with webrecorder and untouched should crash all the program :?:

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

Post by Marcus Tettmar » Fri Feb 03, 2006 10:24 am

Try this instead:

//Modify buffer size if required ...
Let>FORM3_SIZE=255
LibFunc>hIE,ExtractTag,r,%IE[1]%,,FORM,3,0,FORM3
MidStr>r_6,1,r,FORM3

Let>TABLE12_SIZE=255
LibFunc>hIE,ExtractTag,r,%IE[0]%,,TABLE,12,0,TABLE12
MidStr>r_6,1,r,TABLE12

I think the problem is that it is trying to read past the end of the buffer. the MidStr command will extract the length returned. Also try increasing the buffer size.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

rodukas
Newbie
Posts: 5
Joined: Thu Feb 02, 2006 12:09 pm

Post by rodukas » Fri Feb 03, 2006 11:14 am

That's, once again, a fantastic piece of advise!

Thank you so much.

rblack
Pro Scripter
Posts: 87
Joined: Sat Dec 22, 2007 12:39 pm

Post by rblack » Sat Dec 29, 2007 10:46 am

hello, this topic is a little old, but i have a very simmilar problem, i'm using webrecorder libary:

The following text-extracting code works fine:

Let>TABLE3_SIZE=14098
LibFunc>hIE,ExtractTag,r,%IE[2]%,,TABLE,3,0,TABLE3
MidStr>r_6,1,r,TABLE3
msg>%TABLE3%


But when i try to extract all html, macro scheduler hangs:

Let>TABLE3_SIZE=14098
LibFunc>hIE,ExtractTag,r,%IE[2]%,,TABLE,3,1,TABLE3
MidStr>r_6,1,r,TABLE3
msg>%TABLE3%

rblack
Pro Scripter
Posts: 87
Joined: Sat Dec 22, 2007 12:39 pm

Post by rblack » Tue May 06, 2008 6:21 pm

i have again the same problem :(
the command

LibFunc>hIE,ExtractTable,r,%IE[0]%,,3,str:WHERE,0

works fine writing down the code to file, but i need to save the HTML inside the table,

the command
LibFunc>hIE,ExtractTag,r,%IE[0]%,,TABLE,2,1,TABLE3
MessageModal>%TABLE3%

doesnt work

There is an
"access violation eat adress 05A2F0A8 in module "IEAuto.dll". Read of address 0967DD0C"

Please help, because this time i need a solution~!

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

Post by Marcus Tettmar » Wed May 07, 2008 6:20 am

Can you send the URL and th script so that we can reproduce?
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

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