Page 1 of 1

Passing the Random Question in a Forum

Posted: Tue May 14, 2019 11:08 am
by erline368
Hello,

I'm using iMacros 8.9.7 on FIrefox 55.0 (64-bit). Windows 10

I'm new with iMacros and I'm trying to make an automation to 'up' my post in a forum daily

there will be a random questions each time when you try to reply your post

Question 1: <p class="description"> type 12345</p>
Question 2: <p class="description"> 1+2=?</p>
Question 3: <p class="description"> what's the day after sunday?</p>

then i need to answer it in
<input id="humanverify" class="textbox answer" name="humanverify[input]" id="humanverify" autocomplete="off" type="text">

I have tried to follow several guides and ways and this one is the last one i made but apparently it's "TypeError: checkText is undefined, line 3 (Error code: -991)"

Code: Select all

var checkText = window.content.document.getElementsByTagName('HTML').textContent;

if(checkText.search("1+2=") > -1){
	var iims;
	iims = "CODE:";
	iims += "EVENT TYPE=KEYPRESS SELECTOR=\"#humanverify\" CONTENT=3"+"\n";
	iimPlay(iims);	
}else{
var iims;
	iims = "CODE:";
	imms += "WAIT SECONDS=0.5"+"\n";
	iimPlay(iims);
};

Can anyone help me with simpler code or guide that i can follow? :cry:

Re: Passing the Random Question in a Forum

Posted: Wed May 22, 2019 10:51 am
by erline368
till today i can't find how to do it :(

Re: Passing the Random Question in a Forum

Posted: Wed May 22, 2019 3:47 pm
by chivracq
erline368 wrote:
Tue May 14, 2019 11:08 am
Hello,

I'm using

Code: Select all

iMacros 8.9.7 on FIrefox 55.0 (64-bit). Windows 10
I'm new with iMacros and I'm trying to make an automation to 'up' my post in a forum daily

there will be a random questions each time when you try to reply your post

Question 1: <p class="description"> type 12345</p>
Question 2: <p class="description"> 1+2=?</p>
Question 3: <p class="description"> what's the day after sunday?</p>

then i need to answer it in
<input id="humanverify" class="textbox answer" name="humanverify[input]" id="humanverify" autocomplete="off" type="text">

I have tried to follow several guides and ways and this one is the last one i made but apparently it's "TypeError: checkText is undefined, line 3 (Error code: -991)"

Code: Select all

var checkText = window.content.document.getElementsByTagName('HTML').textContent;

if(checkText.search("1+2=") > -1){
	var iims;
	iims = "CODE:";
	iims += "EVENT TYPE=KEYPRESS SELECTOR=\"#humanverify\" CONTENT=3"+"\n";
	iimPlay(iims);	
}else{
var iims;
	iims = "CODE:";
	imms += "WAIT SECONDS=0.5"+"\n";
	iimPlay(iims);
};

Can anyone help me with simpler code or guide that i can follow? :cry:
erline368 wrote:
Wed May 22, 2019 10:51 am
till today i can't find how to do it :(
Yeah, well..., good Quality in your Post, and your Scenario/Case is quite interesting actually, but hum..., you are a bit "out of luck" with me, as I don't help for [Social Media/Forums/Comments/Likes/Captcha/Competition], sorry... :oops:
(As the Intention of the Site Owner is clearly to prevent Web-Automation, so I respect that Intention... :wink: )

But what you want is not very-very difficult to implement, and there are several "Solutions" or ways to implement that "Functionality" [sic :shock: ], that's all I can say... But "good luck" with other Users, maybe sbd else will be willing to help you... :wink:

Re: Passing the Random Question in a Forum

Posted: Thu Jul 04, 2019 3:56 pm
by thecoder2012
erline368 wrote:
Tue May 14, 2019 11:08 am
I have tried to follow several guides and ways and this one is the last one i made but apparently it's "TypeError: checkText is undefined, line 3 (Error code: -991)"
Which guides? I think you not understand all commands in your snippet. :x
erline368 wrote:
Tue May 14, 2019 11:08 am
Can anyone help me with simpler code or guide that i can follow? :cry:
Simpler iim code as base code:

Code: Select all

TAG POS=1 TYPE=P ATTR=TXT:type<SP>12345
TAG POS=1 TYPE=P ATTR=TXT:1+2=?
TAG POS=1 TYPE=P ATTR=TXT:what's<SP>the<SP>day<SP>after<SP>sunday?
TAG POS=1 TYPE=INPUT:TEXT ATTR=ID:humanverify CONTENT=3
erline368 wrote:
Wed May 22, 2019 10:51 am
till today i can't find how to do it :(
No full example in your post. Learn Javascript and then try it again.
chivracq wrote:
Wed May 22, 2019 3:47 pm
(As the Intention of the Site Owner is clearly to prevent Web-Automation, so I respect that Intention... :wink: )
Yes but the Intention is not really good enough. Questions are too simple. :(

Re: Passing the Random Question in a Forum

Posted: Thu Jul 04, 2019 7:00 pm
by chivracq
thecoder2012 wrote:
Thu Jul 04, 2019 3:56 pm
chivracq wrote:
Wed May 22, 2019 3:47 pm
(As the Intention of the Site Owner is clearly to prevent Web-Automation, so I respect that Intention... :wink: )
Yes but the Intention is not really good enough. Questions are too simple. :(
Yeah, well, that's why I mentioned it would not be very difficult to implement that Functionality in iMacros...

And it's apparently "good enough" to already prevent "most" Users from automating/scripting that Site/Forum..., until one or "too many" Users and/or "too obviously/annoyingly" for the Site Owner or for other Users would be bypassing that simple Measure, and the only Result that @OP will achieve will be that the Site Owner will then implement "real" Captcha (which I don't support, and don't help bypassing) to prevent from only having Bots talking or competing with each other, and that (Captcha) will then be "a pain in the ass" for all Users on that Site/Forum... And @OP will be "happy" to have "screwed" it for everybody on that Site...! Tja, that's the way it works... Same with Social Media and fake 'Likes' or with Games... :roll:

Re: Passing the Random Question in a Forum

Posted: Thu Jul 04, 2019 7:48 pm
by thecoder2012
chivracq wrote:
Thu Jul 04, 2019 7:00 pm
..., and that (Captcha) will then be "a pain in the ass" for all Users on that Site/Forum...
Not every forum is open for noobs. Captchas are prevent not only bots, really. :?
I have the best captcha for you under http://random.irb.hr/signup.php ! :wink:

Screenshot:
firstcaptcha.jpg
Or this captcha with phpBB plugin: https://www.phpbb.com/customise/db/mod/ ... ha_plugin/
secondcaptcha.png

Re: Passing the Random Question in a Forum

Posted: Thu Jul 04, 2019 8:26 pm
by chivracq
thecoder2012 wrote:
Thu Jul 04, 2019 7:48 pm
chivracq wrote:
Thu Jul 04, 2019 7:00 pm
..., and that (Captcha) will then be "a pain in the ass" for all Users on that Site/Forum...
Not every forum is open for noobs. Captchas are prevent not only bots, really. :?
I have the best captcha for you under http://random.irb.hr/signup.php ! :wink:

Screenshot:
Image
Oh...!, excellent,,,!, LOL...! 8) :lol: 8)
Very interesting Site actually...

And hum, you could better upload your Printscreen directly to the Forum rather than using some external Hosting Site that one day will probably go dark or commercial and your Printscreen will unfortunately disappear...

Re: Passing the Random Question in a Forum

Posted: Thu Jul 04, 2019 8:37 pm
by chivracq
thecoder2012 wrote:
Thu Jul 04, 2019 7:48 pm
Or this captcha with phpBB plugin: https://www.phpbb.com/customise/db/mod/ ... ha_plugin/
Image
But hum, the 2nd one is impossible to solve...!
=> "sin(x)=84", and that's not possible I would think, even if I haven't done any 'sin()'/'cos()' Equations for many years now, but 'sin()' (and 'cos()') is/are always in [0-1]... :?

Re: Passing the Random Question in a Forum

Posted: Thu Jul 04, 2019 9:21 pm
by thecoder2012
chivracq wrote:
Thu Jul 04, 2019 8:26 pm
And hum, you could better upload your Printscreen directly to the Forum rather than using some external Hosting Site that one day will probably go dark or commercial and your Printscreen will unfortunately disappear...
I have changed it. But the team in the pichoster is good and in other forums are no longer attachments allowed.
chivracq wrote:
Thu Jul 04, 2019 8:37 pm
But hum, the 2nd one is impossible to solve...!
=> "sin(x)=84", and that's not possible I would think, even if I haven't done any 'sin()'/'cos()' Equations for many years now, but 'sin()' (and 'cos()') is/are always in [0-1]... :?
It feels like recaptcha with endless loops. I have not checked the source code and I think it's always to heavy for standard user.

Re: Passing the Random Question in a Forum

Posted: Thu Jul 04, 2019 9:36 pm
by chivracq
thecoder2012 wrote:
Thu Jul 04, 2019 9:21 pm
chivracq wrote:
Thu Jul 04, 2019 8:26 pm
And hum, you could better upload your Printscreen directly to the Forum rather than using some external Hosting Site that one day will probably go dark or commercial and your Printscreen will unfortunately disappear...
I have changed it. But the team in the pichoster is good and in other forums are no longer attachments allowed.
Oh, perfect...! Thanks... :D

Yeah, well, "is bad" => they go dark one day...!, and "is good" => they go commercial one day...! LOL...! :wink:

thecoder2012 wrote:
Thu Jul 04, 2019 9:21 pm
chivracq wrote:
Thu Jul 04, 2019 8:37 pm
But hum, the 2nd one is impossible to solve...!
=> "sin(x)=84", and that's not possible I would think, even if I haven't done any 'sin()'/'cos()' Equations for many years now, but 'sin()' (and 'cos()') is/are always in [0-1]... :?
It feels like recaptcha with endless loops. I have not checked the source code and I think it's always to heavy for standard user.
What would be "interesting" (and challenging) (for us), would be to know if the Formula can be extracted or if it presented/displayed as an Image (like the first Site), and then if the Formula can be extracted, using 'EVAL()' to solve those Equations... That would be Fun...! :twisted:

Re: Passing the Random Question in a Forum

Posted: Thu Jul 04, 2019 10:13 pm
by thecoder2012
chivracq wrote:
Thu Jul 04, 2019 9:36 pm
Yeah, well, "is bad" => they go dark one day...!, ...
Dark, hm. Black background or dark theme? :lol:
chivracq wrote:
Thu Jul 04, 2019 9:36 pm
... and "is good" => they go commercial one day...! LOL...! :wink:
Like orange theme with buy button? :shock: