Search found 239 matches

by iimfun
Wed Jul 27, 2016 11:22 am
Forum: iMacros for Firefox
Topic: How can i save Javascript text string to a TXT file?
Replies: 6
Views: 3073

Re: How can i save Javascript text string to a TXT file?

If your text has special chars, just use the iimSet() function

Code: Select all

var file_content="content";
iimSet("file_content", file_content);
var mm="CODE:";
    mm+="\nADD !EXTRACT {{file_content}}";
    mm+="\nSAVEAS TYPE=EXTRACT FOLDER=* FILE=file.txt";
iimPlay(mm);
by iimfun
Tue Jul 26, 2016 3:07 pm
Forum: iMacros for Chrome
Topic: Multiple Text Recognition and tag a button
Replies: 21
Views: 10292

Re: Multiple Text Recognition and tag a button

I took your first version of the macro and tried to integrate two codes here SET w11 "blue" SET w12 "red" SET w13 "orange" SET w21 "podium" TAB T=1 URL GOTO=https://www.exampletesting.com SET !ENCRYPTION NO 'This section below will login my account on the website automatically' TAG POS=1 TYPE=INPUT:...
by iimfun
Tue Jul 26, 2016 8:29 am
Forum: iMacros for Firefox
Topic: How to fill information in Facebook
Replies: 7
Views: 3254

Re: How to fill information in Facebook

Chivracq, thanks. I prefer to use regular expressions wherever it's possible for me.
by iimfun
Tue Jul 26, 2016 8:23 am
Forum: iMacros for Chrome
Topic: Multiple Text Recognition and tag a button
Replies: 21
Views: 10292

Re: Multiple Text Recognition and tag a button

Derrick, I suppose that this was about my code When i test the script individually only extracting the text It seems to work fine. Blue gets extracted and got the popup if it is present Or else no popup. So OK! Now it's time for the 'EVAL' command. I tried to code the following logic My list of keyw...
by iimfun
Mon Jul 25, 2016 3:11 pm
Forum: iMacros for Chrome
Topic: Multiple Text Recognition and tag a button
Replies: 21
Views: 10292

Re: Multiple Text Recognition and tag a button

Does the following macro extract correctly the 'Colour' and 'level' values from the table? SET !EXTRACT_TEST_POPUP NO TAG POS=1 TYPE=TD ATTR=TXT:Colour TAG POS=R8 TYPE=TD ATTR=* EXTRACT=TXT TAG POS=R2 TYPE=TD ATTR=* EXTRACT=TXT SET !EXTRACT EVAL("'{{!EXTRACT}}'.replace(/\\n/g,'');") PROMPT {{!EXTRAC...
by iimfun
Mon Jul 25, 2016 9:20 am
Forum: iMacros for Firefox
Topic: Make iMacros scroll to bottom of page?
Replies: 2
Views: 4028

Re: Make iMacros scroll to bottom of page?

https://twitter.com/NOCNICZEK/followers (here I just need to scroll to bottom on the page as is) EVENT TYPE=KEYPRESS SELECTOR=* KEY=35 https://www.instagram.com/future_sick/ (here, please login into your Instagram account and click on either Following or Followers. This will display a sort of a pop...
by iimfun
Mon Jul 25, 2016 7:09 am
Forum: iMacros for Firefox
Topic: How to fill information in Facebook
Replies: 7
Views: 3254

Re: How to fill information in Facebook

The macro below works good for me TAG POS=1 TYPE=LABEL ATTR=TXT:"Professional Skills" SET !EXTRACT_TEST_POPUP NO TAG POS=R1 TYPE=LABEL ATTR=* EXTRACT=HTM SET id EVAL("'{{!EXTRACT}}'.match(/id=\"(.+?)\"/)[1];") EVENT TYPE=CLICK SELECTOR="#{{id}}>INPUT" BUTTON=0 EVENTS TYPE=KEYPRESS SELECTOR="#{{id}}>...
by iimfun
Sat Jul 23, 2016 1:31 pm
Forum: iMacros for Chrome
Topic: Multiple Text Recognition and tag a button
Replies: 21
Views: 10292

Re: Multiple Text Recognition and tag a button

Derrick, I think that first of all you have to extract the text result appearing on the web page after clicking the “load results button”. So your code lacks the TAG command with the EXTRACT parameter. Then it will be possible to use the EVAL command in Chrome (or something else as Chivracq wrote), ...
by iimfun
Thu Jul 21, 2016 7:35 am
Forum: iMacros for Firefox
Topic: Extract Number of Elements
Replies: 2
Views: 1165

Re: Extract Number of Elements

Here is a possible solution if you're applying a pure iim macro ' specify your selector here SET selectScr "var num = document.querySelectorAll('div').length;" SET !POPUP_ALLOWED {{!URLCURRENT}} SET openScr "eval('window.open(\\"javascript:'+num+'\\")');" URL GOTO=javascript:(function(){<SP>{{select...
by iimfun
Wed Jul 20, 2016 1:50 pm
Forum: iMacros for Firefox
Topic: Problem Random Click
Replies: 2
Views: 986

Re: Problem Random Click

I think the problem is concerned with Y-coordinate - it's too big. Probably, beyond the screen visibility.
by iimfun
Wed Jul 20, 2016 7:08 am
Forum: iMacros for Chrome
Topic: Alternative ways to run a macro in chrome
Replies: 4
Views: 2786

Re: Alternative ways to run a macro in chrome

Did you play the macros from your Chrome bookmarks at real pages? I mean e.g. "www.somesite.com" etc.
by iimfun
Wed Jul 20, 2016 7:01 am
Forum: Data Extraction and Web Screen Scraping
Topic: extract data from ATTR which is generated
Replies: 2
Views: 1233

Re: extract data from ATTR which is generated

Taking into account the information you gave, I can recommend this code

Code: Select all

SEARCH SOURCE=REGEXP:"(<span.*(\d{7}).*<)" EXTRACT=$2
TAG POS=1 TYPE=SPAN ATTR=TXT:{{!EXTRACT}}
by iimfun
Tue Jul 19, 2016 2:45 pm
Forum: iMacros for Firefox
Topic: How can use in CONTENT quotes instead <SP>
Replies: 2
Views: 955

Re: How can use in CONTENT quotes instead <SP>

The following way with double backslashes, maybe

Code: Select all

TAG POS=1 TYPE=INPUT:FILE ATTR=TYPE:file CONTENT="D:\\YouTubeVideos\\YouTube Video 2016.mp4"
by iimfun
Tue Jul 19, 2016 2:42 pm
Forum: iMacros for Chrome
Topic: If !URLCURRENT=x" go BACK
Replies: 2
Views: 1928

Re: If !URLCURRENT=x" go BACK

It seems this may be a solution

Code: Select all

SET action EVAL("('{{!URLCURRENT}}'.match(/www\\.google\\.com/)) ? 'window.history.back();' : 'void(0);';")
URL GOTO=javascript:{{action}}