Search found 17 matches

by LSnelson
Sat Jun 26, 2010 3:21 pm
Forum: General Support & Discussions
Topic: [SUGGESTION] TRY CATCH OR ONERROR IMPLEMENTATION
Replies: 4
Views: 4198

Re: [SUGGESTION] TRY CATCH OR ONERROR IMPLEMENTATION

Nice idea. The Imacros folks need to give us at least a little programming abilities inside the macro. If would be good if you could tell what was happening while the macro was playing instead of having to wait until it finished.

L.S.
by LSnelson
Fri Jun 25, 2010 6:47 pm
Forum: General Support & Discussions
Topic: Imacros Brower causes Internet Explorer to open
Replies: 4
Views: 3098

Re: Imacros Brower causes Internet Explorer to open

I have not tried the version 7 but I think I have fixed the problem. In my code, after clicking on an HREF link it opens a new tab and I have a TAB T=2 command to go to that tab. I put a WAIT SECONDS=1 before the TAB command and have not seen the issue since. Pretty weird but will advise if it appea...
by LSnelson
Tue Jun 22, 2010 5:13 pm
Forum: General Support & Discussions
Topic: Imacros Brower causes Internet Explorer to open
Replies: 4
Views: 3098

Re: Imacros Brower causes Internet Explorer to open

Thanks Tom, The macro goes to http://www.bbb.org and does a search for let's say "roofing contractors". The search will generate 20 entries per page (see attachment). The PHP code below is inside of a loop (1-20). I have stripped this down for readability. The last line of this code snippe...
by LSnelson
Fri Jun 11, 2010 11:48 pm
Forum: General Support & Discussions
Topic: Where can I start learning VBS, and iMacro scripting
Replies: 4
Views: 3284

Re: Where can I start learning VBS, and iMacro scripting

iret is just a made up variable name. Most every function returns some value back to the calling program. It is usually a number but could also be a character string. The return code is usually used to indicate success or failure of the function. You save the return code into a variable and then che...
by LSnelson
Thu Jun 10, 2010 9:49 pm
Forum: General Support & Discussions
Topic: Where can I start learning VBS, and iMacro scripting
Replies: 4
Views: 3284

Re: Where can I start learning VBS, and iMacro scripting

There are a number of VB script examples on this website but my advice would be to use a different programming language. My favorite is PHP as it is free, has many add-ons and if much more feature rich than VBS. The general steps for scripting Imacros are: 1. iim1 = CreateObject("imacros")...
by LSnelson
Thu Jun 10, 2010 9:38 pm
Forum: General Support & Discussions
Topic: [SUGGESTION] If TAG exists
Replies: 6
Views: 5453

Re: [SUGGESTION] If TAG exists

I totally agree with this. A simple IF statement would make life easier for us.

Larry
by LSnelson
Sat Jun 05, 2010 8:03 pm
Forum: Command Line and Scripting Interface
Topic: Need Help with iimSet ()
Replies: 2
Views: 1978

Re: Need Help with iimSet ()

Actually, it is working now. I have no idea what fixed it. Worked on this for hours and now it mysteriously works. Go figure.
by LSnelson
Sat Jun 05, 2010 2:31 pm
Forum: General Support & Discussions
Topic: Imacros Brower causes Internet Explorer to open
Replies: 4
Views: 3098

Imacros Brower causes Internet Explorer to open

I'm running Imacros 6.5 Scripting Edition. During iimplay() inside of a scripted loop I am getting a new IE browser opening up on the screen. This seems to happen at random during the loop. Also, new tabs are opened on the IE instance. There is Javascript code on the website I'm testing with calls t...
by LSnelson
Fri Jun 04, 2010 3:40 pm
Forum: Command Line and Scripting Interface
Topic: Need Help with iimSet ()
Replies: 2
Views: 1978

Need Help with iimSet ()

I'm trying to use iimSet to set a variable in a macro created in memory using PHP. Code Snippet: $iim1 = new COM("imacros"); $iim1->iimInit(); $mymacro = 'CODE:'; $mymacro .= 'TAG POS=1 TYPE=A ATTR=ID:cTL{{NAME}}' . "\r\n"; $iim1->iimSet ("NAME", "joe"); $iim1...
by LSnelson
Wed Mar 10, 2010 11:29 pm
Forum: General Support & Discussions
Topic: How to know how many tabs are open
Replies: 1
Views: 1427

How to know how many tabs are open

I've seen this addressed by a few others but no real solution. How do I know how many tab are open in the Imacros Browser. A particular website I use uses popups to notify the user about upcoming events, system status etc. The Imacros Browser opens a new tab for each one of these notifications. Ther...
by LSnelson
Thu Sep 17, 2009 1:06 am
Forum: Command Line and Scripting Interface
Topic: Need Example Using PHP
Replies: 4
Views: 6820

Re: Need Example Using PHP

Thank you. That's exactly what I wanted.
by LSnelson
Tue Sep 15, 2009 5:55 pm
Forum: Command Line and Scripting Interface
Topic: Need Example Using PHP
Replies: 4
Views: 6820

Need Example Using PHP

I've been using VBScript for a while and want to migrate to PHP. In VB you can build your macro inline like this: MyMacroCode = "CODE:" MyMacroCode = MyMacroCode+"VERSION BUILD=5200814" + vbNewLine MyMacroCode = MyMacroCode+"TAB T=1" + vbNewLine MyMacroCode = MyMacroCod...
by LSnelson
Mon Mar 09, 2009 7:31 pm
Forum: Command Line and Scripting Interface
Topic: Loop problem with iimgetlastextract using VBS
Replies: 4
Views: 9571

Re: Loop problem with iimgetlastextract using VBS

Just got back on this project and unfortunately still having a problem with array element addressing. I have an array loaded with stock symbols. Below is a code snippet: CODE: /******************************************* 1. For Element 0 to ubound(MyArray) 2. macro = macro+ "URL GOTO=http://www...
by LSnelson
Wed Feb 04, 2009 4:01 pm
Forum: Command Line and Scripting Interface
Topic: Loop problem with iimgetlastextract using VBS
Replies: 4
Views: 9571

Re: Loop problem with iimgetlastextract using VBS

Aha! I knew it must be something simple. I will try Cint and advise.

Thanks
by LSnelson
Mon Feb 02, 2009 5:34 pm
Forum: Command Line and Scripting Interface
Topic: Any C Language samples available?
Replies: 2
Views: 2016

Re: Any C Language samples available?

Thanks, but I'm looking for C as opposed to C++. Since C is not object oriented I wanted to see how the iim functions would be called.

Thanks,
Larry