Sample macro for yahoo.finance.com doesn't give $$ output

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
catbox
Junior Coder
Posts: 26
Joined: Mon Dec 03, 2012 6:43 pm

Sample macro for yahoo.finance.com doesn't give $$ output

Post by catbox » Mon Dec 03, 2012 7:21 pm

I really want to use the IEGetTags for my sample macro....I am unable to create a basic sample from this using a https//site to start my script. not sure what I am doing wrong :( I have all of the HTML tags defined...so I am thinking, if I cannot even run the sample, then something else may be wrong here?

When I run the sample macro...I only get the output text of 'value_1' instead of the actual stock price for Microsoft. Do I have something on IE set wrong?

I am using the exact sample:
IETagEventByAttrib>finance.yahoo.com,INPUT,name=s,,MSFT
IETagEventByAttrib>finance.yahoo.com,INPUT,id=btnQuotes,click,

Wait>1
IEWait>finance.yahoo.com

IEGetTagsByAttrib>finance.yahoo.com,SPAN,id=yfs_184_msft,T,values
MessageModal>value_1

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 Dec 04, 2012 3:31 pm

Which version of macro scheduler do you have? These are very new commands so you need the very latest.

If the script can't find the tags it will pop an error.

If you get no error and the commands appear as black text in the editor and are not in the code builder pane then you have an outdated version and they will do nothing.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

User avatar
Djek
Pro Scripter
Posts: 148
Joined: Sat Feb 05, 2005 11:35 pm
Location: Holland
Contact:

Re: Sample macro for yahoo.finance.com doesn't give $$ outpu

Post by Djek » Tue May 06, 2014 10:08 pm

stumbled into this,
for those who may wonder why the script could not work,
i noticed :

IEGetTagsByAttrib>finance.yahoo.com,SPAN,id=yfs_184_msft,T,values
MessageModal>value_1

Cause of the array var name is values
the correct syntax is Messagemodal>values_1

kind regards,
Djek

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

Re: Sample macro for yahoo.finance.com doesn't give $$ outpu

Post by Marcus Tettmar » Wed May 14, 2014 6:06 am

Well spotted. We need to get that sample macro updated and fixed for the next release.


Sent from my iPad using Tapatalk
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

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

Re: Sample macro for yahoo.finance.com doesn't give $$ outpu

Post by Marcus Tettmar » Thu May 22, 2014 12:22 pm

Erm - where did you find this yahoo sample script?

It's not one of the scripts shipped with the product which is what I thought, so I'm now wondering what needs fixing where.

Did you find it on the site? I've searched but not found the code you referred to.
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