[MACRO REQUEST] Loop and dynamic ID form compiler

Find a consultant or advertise your services here
User avatar
thecoder2012
Posts: 359
Joined: Sat Aug 15, 2015 5:14 pm
Location: Internet
Contact:

Re: [MACRO REQUEST] Loop and dynamic ID form compiler

Post by thecoder2012 » Tue Sep 17, 2019 3:11 pm

cybmatrix wrote:
Tue Sep 17, 2019 2:30 pm
Found a solution with JS, that recursively try to insert text in the real POS:
Good and not bad. If it's not enough you can use URL GOTO command with pure Javascript as pure IIM script.
cybmatrix wrote:
Tue Sep 17, 2019 2:30 pm
* CODE BY Vivek from India !
Was this solution paid or is Vivek in this forum?
I love all advanced users! :)
Join 9kw.eu Captcha Service now and let your iMacros continue downloads and scripts while you sleep. - Custom iMacros? Contact me! :idea:
Tom, Tech Support
Posts: 3527
Joined: Mon May 31, 2010 4:59 pm

Re: [MACRO REQUEST] Loop and dynamic ID form compiler

Post by Tom, Tech Support » Tue Sep 24, 2019 8:04 am

thecoder2012 wrote:
Tue Sep 17, 2019 3:11 pm
Was this solution paid or is Vivek in this forum?
There is a vivek in this forum, but only ever made one post in 2009 so may not be the same person.
Regards,

Tom, iMacros Support
access2vivek
Posts: 50
Joined: Wed Dec 20, 2017 10:00 am
Location: New Delhi, India
Contact:

Re: [MACRO REQUEST] Loop and dynamic ID form compiler

Post by access2vivek » Wed Oct 16, 2019 7:24 am

cybmatrix wrote:
Tue Sep 17, 2019 2:30 pm
Found a solution with JS, that recursively try to insert text in the real POS:

Code: Select all

function InputMessage(msg)
{
	var ele=window.content.document.querySelectorAll("textarea[placeholder='Deine Nachricht']");
	for(var i=1;i<=ele.length;i++)
		iimPlayCode("SET !ERRORIGNORE YES\nSET !TIMEOUT_STEP 0\nTAG POS="+i+" TYPE=TEXTAREA ATTR=placeholder:Deine<SP>Nachricht CONTENT="+msg.replace(/ /g,"<SP>"));
}

function InputName(name)
{
	var ele=window.content.document.querySelectorAll("input[placeholder='Dein Name']");
	for(var i=1;i<=ele.length;i++)
		iimPlayCode("SET !ERRORIGNORE YES\nSET !TIMEOUT_STEP 0\nTAG POS="+i+" TYPE=INPUT ATTR=placeholder:Dein<SP>Name CONTENT="+name.replace(/ /g,"<SP>"));
}

* CODE BY Vivek from India !
Thank you so much for the mention Andrea :-). It was a pleasure helping you out with the form! Although the solution isn't "optimal", it does help solve the problem :-D
Robust iMacros development with quick turnaround time. Drop an email at "access2content@gmail.com" with your project details.
access2vivek
Posts: 50
Joined: Wed Dec 20, 2017 10:00 am
Location: New Delhi, India
Contact:

Re: [MACRO REQUEST] Loop and dynamic ID form compiler

Post by access2vivek » Wed Oct 16, 2019 7:30 am

Was this solution paid or is Vivek in this forum?
I love all advanced users! :)
I helped out Andrea with the problem. It required a bit of probing to do and Andrea was happy to pay me for the time spent on the solution.
I love all advanced users too :-D. Wish there was a way for all coders to connect and create something awesome ;-)
Robust iMacros development with quick turnaround time. Drop an email at "access2content@gmail.com" with your project details.
Post Reply