sometimes the script works other time i get RuntimeError:

Support for iMacros. The iMacros software is the unique solution for automating every activity inside a web browser, for data extraction and web testing.
Forum rules
iMacros EOL - Attention!

The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.

Thank you again for your business and support.

Sincerely,
The Progress Team

Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
chivracq
Posts: 10301
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: sometimes the script works other time i get RuntimeError

Post by chivracq » Mon Oct 15, 2018 1:41 pm

master68 wrote:sorry still stuck with this code everytime i fix something i get something else this is why i didn't reply first i didn't fix it and second i found myself so annoying so i thought keep searching the forum and helping myself (as you asked me before you said i have to learn and work hard) and when i found myself ready to be thew one you asked I will post another reply... as i said earlier i am not a programmer so it is hard to work with me because i can barely understand your recommendations all what i am doing now is learning thx for the follow up you are very kind
All right, Thanks for the "Update" then... :D
Yeah well, I'm always very "motivated" to help Users who are willing to learn and "progress", so you can post/share how you progress and I can help you overcome the new Difficulties you might be encountering..., I probably also went through exactly the same "Situations" when I started using iMacros (hum, about 10 years ago now, oops...!). :wink:

But to get back to your original Pb, there is honestly nothing "wrong" with repeating the same Block of Code 15x times for the 15 possible Frame Numbers, yep, it won't be the most "elegant" Solution, but if it works, then who cares...!? I still have some older Scripts of mine where I used that Method as well, and they still work, I improved/shortened a few, sometimes several years later if I had to modify/improve stg else also in the same Scripts, but for many, I didn't touch them anymore and they still work...

And in your Case, dynamically identifying the Frame_Nb would involve an 'EXTRACT=HTM' on the 'BODY' I mentioned, which can be a little bit slow, at least on FF I know (dunno why), so the 15x times Repeat might actually work quicker anyway...

Hum, you were using v10.0.5 for CR, you didn't mention 'Free'/'PE', but if using the 'Free' Version, you will then probably hit the 50 Lines of Code 'Freeware' Limitation if you repeat 15x times a 2 or 3 Line Block, hum...! OK, maybe you don't need 15 times, if you can lower that Number to maybe 5, then try again after a Refresh, hopefully the Frame_Nb will then "fall" within the Range of Nb's that your Script will try to use...
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...
Post Reply