MS and iMacros

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
hagchr
Automation Wizard
Posts: 331
Joined: Mon Jul 05, 2010 7:53 am
Location: Stockholm, Sweden

MS and iMacros

Post by hagchr » Sun Jul 25, 2010 3:37 pm

Hi,

I have a question but not sure if the problem relates to MS or iMacros (I am using MS Pro 12.0.5 and iMacros 7)

I am trying the simple MS example they show on their web page (http://wiki.imacros.net/Macro_Scheduler) (see below).

When I run the iMacros script (in iMacros) it returns: "Windows Automation and Macro Solutions that Enhance Productivity.", ie ok.

However, when I run it through MS, I just get the message: "[EXTRACT]"

Would appreciate any insights.



MS Script
=========

VBSTART
Function RuniMacros(file)
Dim iim1, i, iret
set iim1 = CreateObject("imacros")
iret = iim1.iimInit

'Run the macro
iret = iim1.iimPlay(file)

RuniMacros = iim1.iimGetLastExtract()
iret = iim1.iimExit
End Function
VBEND

VBEval>RuniMacros("%SCRIPT_DIR%\mjtnet.iim"),res
Let>RP_WAIT=2
MessageModal>res


iMacros Script - mjtnet.iim
=====================

URL GOTO=http://www.mjtnet.com/
TAG POS=1 TYPE=H1 ATTR=TXT:* EXTRACT=TXT

hagchr
Automation Wizard
Posts: 331
Joined: Mon Jul 05, 2010 7:53 am
Location: Stockholm, Sweden

MS and iMacros

Post by hagchr » Sun Jul 25, 2010 9:04 pm

After changing the path it all works fine.

VBEval>RuniMacros("mjtnet.iim"),res

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