Custom Extract

Discussions and Tech Support specific to the iMacros for Chrome extension.
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
Post Reply
Pengi123
Posts: 2
Joined: Wed Jan 17, 2018 8:35 pm

Custom Extract

Post by Pengi123 » Wed Jan 17, 2018 8:43 pm

I need help with this code


This is html code

Code: Select all

<iframe seamless="seamless" id="iframegame" scrolling="no" frameborder="0" height="638" width="850.6666666666666" webkitallowfullscreen="true" mozallowfullscreen="true" allowfullscreen="true" webkit-playsinline="true" src="https://domain.com" style="width: 695px; height: 522.366px;"></iframe>
How to from this html code extract height number and width number

Best Regards!!
Last edited by Pengi123 on Fri Jan 26, 2018 5:44 pm, edited 3 times in total.
chivracq
Posts: 10301
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: need help!!

Post by chivracq » Wed Jan 17, 2018 9:06 pm

Pengi123 wrote:How to copy width txt and height txt from this code to imacros code

Code: Select all

<iframe seamless="seamless" id="iframegame" scrolling="no" frameborder="0" height="638" width="850.6666666666666" webkitallowfullscreen="true" mozallowfullscreen="true" allowfullscreen="true" webkit-playsinline="true" src="https://domain.com" style="width: 695px; height: 522.366px;"></iframe>
I am writing and not working:

Code: Select all

VERSION BUILD=1001 RECORDER=CR
TAG POS=1 TYPE=IFRAME ATTR=id:iframegame* EXTRACT=height
SET !CLIPBOARD {{!EXTRACT}}
Hum, funny ah-ah...!, but nice Try actually... But bad luck, Custom Attributes are only supported on iMB afaik, since v10.2 I think... Try again...! 8)

Hum..., and I don't know what you are going to do with '!CLIPBOARD', but it's not fully supported on CR..., unless they (=Dev) have finally fully implemented it in v10.0.1 for CR..., but if that's the case, it's not been documented in the Wiki yet...
- (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...
Pengi123
Posts: 2
Joined: Wed Jan 17, 2018 8:35 pm

Re: Custom Extract

Post by Pengi123 » Fri Jan 26, 2018 5:46 pm

With Clipboard i will copy text to my website

How to from html code above extract height number and width number????????
chivracq
Posts: 10301
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: Custom Extract

Post by chivracq » Fri Jan 26, 2018 9:42 pm

Pengi123 wrote:With Clipboard i will copy text to my website

How to from html code above extract height number and width number????????
Yeah, well, then start again from the beginning, now that you've edited your OP and removed all Ref to your FCI... Your Thread didn't belong to the 'iMacros for CR' then..., try to select the correct Sub-Forum, next time you open a Thread... (But no need to duplicate now...)
=> CIM...! :mrgreen: (Read my Sig...)

"With Clipboard i will copy text to my website"
=> Well, then you don't need '!CLIPBOARD', iMacros' Mechanism is much more advanced than your OS Clipboard...
- (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...
chivracq
Posts: 10301
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: Custom Extract

Post by chivracq » Fri Feb 16, 2018 7:13 pm

From Duplicate Thread (that will one day be deleted or merged with this current one):
- Extracting Problems Iframe code
Pengi123 wrote:I have been trying to figure out this for 2 days, and keep failing

Code: Select all

TAB T=1
TAG POS=1 TYPE=IFRAME ATTR=id:iframegame* EXTRACT=TXT
Set !Var1 Eval("var x = '{{!Extract}}'.match(/height=.(.+).></iframe/); x[1];")
PROMPT {{!VAR1}}

Code: Select all

<iframe id="game-iframe" seamless="seamless" frameborder="0" scrolling="no" allowfullscreen="" webkitallowfullscreen="" mozallowfullscreen="" src="//example.com/games/sweet-candy-new-en-s-iga-cloud/index.html?pub=4&gp=1&siteid=79&channelid=2&siteLocale=en-US&spilStorageId=65996559762" height="639" width="479"></iframe>
I want to extract this part
639
and
479
Well, "2 days", you mean 3 weeks then, ah-ah...! :roll:
Tja, normal if you don't follow up on your Threads, and I had asked you NOT to open a Duplicate but that's exactly what you just did, 3 weeks later... That Duplicate has been reported to be deleted, I cannot do it myself... :roll:
(You can still delete it yourself, as long as nobody posts after you in that Thread..., Reason why I post in this original/current Thread and not in the Duplicate..., and the Report will automatically get deleted..., but pfff..., it would be less Hassle for everybody if you could use the Forum "a bit correctly"...! :roll: )
- (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