Search found 43 matches

by Trax
Sat May 07, 2016 4:25 pm
Forum: iMacros for Firefox
Topic: Php script and mess with queue
Replies: 3
Views: 1327

Re: Php script and mess with queue

I had some similar issues when calling a .iim script from .js script. The iim would not completely finish before javascript would move to the next step. My solution was adding a wait after the calling the .iim script, a long wait. It seems the length of wait would not matter as long as it was longer...
by Trax
Thu May 05, 2016 4:30 pm
Forum: iMacros for Firefox
Topic: Long button CLICK
Replies: 6
Views: 2304

Re: Long button CLICK

Flash .. that complicates things, no idea how you could achieve what you need with iMacros.
by Trax
Wed May 04, 2016 12:58 pm
Forum: iMacros for Firefox
Topic: XPATH nested Tag is not working
Replies: 4
Views: 2192

Re: XPATH nested Tag is not working

I feel like I'm starting to sound like a broken record on this forum, I keep repeating the words javascript & jQuery: script.js function loadJQ() { // Load Jquery function loadScriptFromURL(url) { var request = Components.classes['@mozilla.org/xmlextras/xmlhttprequest;1'].createInstance(Components.i...
by Trax
Wed May 04, 2016 12:49 pm
Forum: iMacros for Firefox
Topic: Regex - how to apply for multiline?
Replies: 3
Views: 1033

Re: Regex - how to apply for multiline?

Since you want to check for 'allan' before using regex maybe it would be easier to split the task in two: 1. Search for the name 2. Retrieve the data I would use jQuery and do something like : var content = $('.details .content').text(); // You can just use iMacros text extract for this text too. if...
by Trax
Tue May 03, 2016 4:10 pm
Forum: iMacros for Firefox
Topic: Regex - how to apply for multiline?
Replies: 3
Views: 1033

Re: Regex - how to apply for multiline?

'g' is a flag that means golbal, tried to use that ?

Code: Select all

/whatever/g
A working sample :

Code: Select all

/\d{3,}/g

\d - any digit/number
{3,} - anything with 3 or more consecutive ,in this case digits.
g - global
by Trax
Tue May 03, 2016 3:05 pm
Forum: iMacros for Firefox
Topic: STOP/ABORT/BREAK[SOLVED]
Replies: 4
Views: 3356

Re: STOP/ABORT/BREAK [SOLVED]

I meant in a .js script, I wasnt looking for a workaround like writing a piece of bad code to generate a syntax error, was just asking if there is an actual in-built way to do it.
by Trax
Tue May 03, 2016 12:45 pm
Forum: iMacros for Firefox
Topic: Bug & Suggestion
Replies: 6
Views: 2614

Re: Bug & Suggestion

We had a Thread recently about this Behaviour, you can toggle it at will if you only want to stop one '.iim' Macro within the (Main) '.js' Script or the whole '.js' Script by disabling/enabling the 'Show Javascript during Replay' Option in the Settings... I see, it needs to be enabled to be able to...
by Trax
Mon May 02, 2016 7:11 pm
Forum: iMacros for Firefox
Topic: Need help to create a script that involves betting
Replies: 4
Views: 2162

Re: Need help to create a script that involves betting

I wrote a script for a different dice site maybe you can get some inspiration from it

https://kat.cr/rollin-io-dice-imacros-b ... 75508.html
by Trax
Mon May 02, 2016 7:05 pm
Forum: iMacros for Firefox
Topic: Bug & Suggestion
Replies: 6
Views: 2614

Re: Bug & Suggestion

When running one of the IIM files, if I hit stop, it stops the IIM file and then the JS file continues. I wish I could be able to stop the JS file along with the IIM file. This is the current behavior already. I stopped self-test.js (which is part of the demo scripts) while running a macro, and the...
by Trax
Mon May 02, 2016 6:50 am
Forum: iMacros for Firefox
Topic: How to use firefox SDK in js file of Macros?
Replies: 2
Views: 972

Re: How to use firefox SDK in js file of Macros?

The only way I know to use require is with browserify, I made a thread about it a while ago : http://forum.imacros.net/viewtopic.php?f=11&t=26042 . After googling a bit it seems you can use firefox SDK with node.js, https://blog.mozilla.org/addons/2014/08/19/announcing-add-on-sdk-1-17/ if this is wh...
by Trax
Sat Apr 30, 2016 6:31 am
Forum: iMacros for Firefox
Topic: Long button CLICK
Replies: 6
Views: 2304

Re: Long button CLICK

Interesting question, it seems to be possible with javascript or jQuery plugins, a google search will point you the right way :)
by Trax
Wed Apr 27, 2016 5:20 pm
Forum: iMacros for Firefox
Topic: Fill up form for gumtree.sg
Replies: 2
Views: 870

Re: Fill up form for gumtree.sg

Javascript + jQuery makes everything really easy :)
by Trax
Sat Apr 23, 2016 6:31 am
Forum: iMacros for Firefox
Topic: Not Saving Screenshots/Images in JS
Replies: 1
Views: 636

Not Saving Screenshots/Images in JS

I'm trying something simple like : scripts.js var saveImg = 'CODE:' saveImg += 'ONDOWNLOAD FOLDER=C:\stuff FILE=tst.png WAIT=YES' + '\n' saveImg += 'WAIT SECONDS = 2' + '\n' saveImg += 'TAG POS=1 TYPE=IMG ATTR=* CONTENT=EVENT:SAVE_ELEMENT_SCREENSHOT' Nothing happens but if I do the same thing in a i...
by Trax
Sat Apr 09, 2016 4:47 pm
Forum: iMacros for Firefox
Topic: Find and Replace text?
Replies: 3
Views: 1695

Re: Find and Replace text?

You need to use javascript code should find plenty examples around...
by Trax
Fri Apr 08, 2016 10:03 am
Forum: iMacros for Firefox
Topic: Find and Replace text?
Replies: 3
Views: 1695

Re: Find and Replace text?

You could try js/regex

Code: Select all

var url = 'your url'

url.replace(/photo/gi, 'photo1000')