Jump to content

Is it possible to set the message and simulate the "Post as USER" click of a Disqus thread?


Recommended Posts

I'm having a hard time trying to set a value in a specific JavaScript textarea... And I think, this is the right time..

Is it possible to set a value in the "Join the discussion…" textarea and simulate the mouse click of the "Post as {USERNAME}" button of the web page that have added a Disqus forum?

If they are possible then:

  • How can I set a value in the "Join the discussion…" textarea?
  • And how to simulate the mouse click of the "Post as {USERNAME}" button?

Note: Before you can see the "Post as {USERNAME}" button, you must be sign in with Disqus first!

This is the (NULL) previous test work that I've done:

#include <IE.au3>
$oIE = _IECreate("http://professionalserver.tk/php/wp/hello-world/", 0, 1, 1, 0)
Sleep(10000)

$disqus_thread = $oIE.document.getElementById("disqus_thread")
$textarea = $disqus_thread.getElementsByClassName("textarea").innerHTML = "Example Message"

_IELinkClickByText($oIE, "Post as")

Here is my test blog that have a Disqus thread:

http://professionalserver.tk/php/wp/hello-world/

Here is the other web page that have it:

http://www.voicesofyouth.org/es/posts/oneminutesjr---syria-my-love-

Here is the other one:

http://comercioexterior.gob.ec/min-rivadeneira-participo-en-evento-experience-ecuador-love-life-en-dubai/

And also make sure that the script will also work in any page that have a Disqus thread..

Link to comment
Share on other sites

  • Moderators

Servant,

Sorry, but helping with multiple automated postings is not something we support here. If you care enough about something to discuss it in multiple sites, do it manually. Thread locked. :naughty:

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...