Can i lessen extract using * ?

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
freakie
Posts: 28
Joined: Wed Mar 01, 2017 12:44 am

Can i lessen extract using * ?

Post by freakie » Fri Mar 11, 2022 1:33 pm

Code: Select all

iMacros for Chrome Version 8.4.4 Free + BRAVE Version 1.16.68 Chromium: 86.0.4240.111 + Win10 64

I'm creating macro with every page REFRESH there are 16 possible random extracts. And each extract corresponce to 16 diffferent eval value.
So after every extract i set, i added

Code: Select all

SET !EXTRACT NULL
PS. Can i use

Code: Select all

*
to lessen the attachment url?
Like this

Code: Select all

https://attachments.labeling-data.net/61d6064a23f8b40017ec5ede%2Fjpeg%2Fbebd7ce4-3ad6-42b9-9357-75f45e66a4eb?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNl
To

Code: Select all

https://attachments.labeling-data.net/61d6064a23f8b40017ec5ede*
I already tried shortening the attachment url using

Code: Select all

*
and successfully extracted my desired image clickable url. But encountered this error right after extraction
RuntimeError: TAG command can not be executed because it requires a Web page loaded in active tab. Current page is chrome-extension://dbidgemmidkmkilgihpaaeojnciiibbm/extractDialog.html, line: 3
this is 1 of the 16 extracts i'm using

Code: Select all

TAG POS=1 TYPE=IMG ATTR=SRC:https://attachments.labeling-data.net/61d620eae3923e001121a4f1* EXTRACT=HREF
SET !VAR1 EVAL("if (\"{{!EXTRACT}}\" == \"#EANF#\") {var s = \"Other\";} else {var s = \"\";} s;")
TAG SELECTOR="HTML>BODY>DIV>DIV:nth-of-type(3)>DIV>DIV>DIV:nth-of-type(2)>DIV:nth-of-type(2)>DIV:nth-of-type(2)>DIV>FORM>DIV>TEXTAREA" CONTENT={{!VAR1}}
SET !EXTRACT NULL
WAIT SECONDS=10
techimac
Posts: 482
Joined: Fri Feb 20, 2015 9:27 pm

Re: Can i lessen extract using * ?

Post by techimac » Sun Mar 13, 2022 12:02 am

try with normal TAG command with textarea
Available for custom iim, javascript iMacros scripts
techimac
Posts: 482
Joined: Fri Feb 20, 2015 9:27 pm

Re: Can i lessen extract using * ?

Post by techimac » Sun Mar 13, 2022 2:04 am

It could be bug as well.
So better to try same code in other imacros version
Available for custom iim, javascript iMacros scripts
freakie
Posts: 28
Joined: Wed Mar 01, 2017 12:44 am

Re: Can i lessen extract using * ?

Post by freakie » Sun Mar 13, 2022 3:10 am

techimac wrote:
Sun Mar 13, 2022 2:04 am
It could be bug as well.
So better to try same code in other imacros version
tried using 8.0.7 and 10.0.0, same issue.
Post Reply