Search found 7 matches

by pauloswear
Tue Aug 18, 2020 7:30 pm
Forum: iMacros for Firefox
Topic: Switch account IF exist a text on the page
Replies: 3
Views: 514

Re: Switch account IF exist a text on the page

Ok, dont be stressed, this is not good for health. I was thinking, can I switch (at least) iMacros scripts if some text is preset on the page? I am using this EVAL to compare variables, SET ESPERA EVAL("('{{PAG_EXTRACT}}' == '{{EXTRAIDO}}') ? 3 : 0;") I was thinking in give a string name that repres...
by pauloswear
Tue Aug 18, 2020 6:31 am
Forum: iMacros for Firefox
Topic: Switch account IF exist a text on the page
Replies: 3
Views: 514

Switch account IF exist a text on the page

Hi guys, i am losing my sleep.. Now it's 3:20 A.M and here i am trying to code something... I appreciate any help or idea :idea: Well, i am using latest basilisk running on windows 10 1909 18363.418 VERSION BUILD=8970419 RECORDER=FX Well, I would like to use some if and else statements to logout and...
by pauloswear
Thu May 21, 2020 2:55 pm
Forum: Data Extraction and Web Screen Scraping
Topic: Extract part of an URL and modify this
Replies: 8
Views: 1158

Re: Extract part of an URL and modify this

mm... I will try a little bit before open new topic.. Maybe the best solution is set timeout to 0, this will give me a new loop

Btw, thanks for all support
by pauloswear
Thu May 21, 2020 12:33 pm
Forum: Data Extraction and Web Screen Scraping
Topic: Extract part of an URL and modify this
Replies: 8
Views: 1158

Re: Extract part of an URL and modify this

Ok, I switched the browser and iMacros to last Basilisk and iMacros 8.9.7 Finally i did this SET !VAR3 EVAL("'www.website.com' + '/'+'{{!URLCURRENT}}'.slice(0, -1).split('/').pop()") URL GOTO={{!VAR3}} This worked, but now i want to do some implementations like if and else.. If the "text" is present...
by pauloswear
Thu May 21, 2020 4:22 am
Forum: Data Extraction and Web Screen Scraping
Topic: Extract part of an URL and modify this
Replies: 8
Views: 1158

Re: Extract part of an URL and modify this

Ok, i was trying to learn some JS and imacros.. I was thinking in split the last part of url and put this in a matrix.. i did this function, and this worked, but i still dont know how to implement this on imacros function getUrl() { var link = window.location.href.slice(0, -1) link = link.split('/')...
by pauloswear
Tue May 19, 2020 10:21 pm
Forum: Data Extraction and Web Screen Scraping
Topic: Extract part of an URL and modify this
Replies: 8
Views: 1158

Re: Extract part of an URL and modify this

I know it's not cool to ask, but could you help me with the code that performs this function? I don't understand javascript or imacros
Its a freeware version btw.
Thanks!
by pauloswear
Tue May 19, 2020 7:56 pm
Forum: Data Extraction and Web Screen Scraping
Topic: Extract part of an URL and modify this
Replies: 8
Views: 1158

Extract part of an URL and modify this

Hi, i am newby yet using scripts... i am trying to extract a part of an URL and modify like this example: - generic website openned with macro function TAG, example: genericsite . com/task/www. genericsite2 .com/user/ - i want extract only user part: /user/ - after all this i want add: www. generics...