Jump to content
UBot Underground

Add image to Reddit


Recommended Posts

Hello. I just tried it using Automaxed Browser Automation & Desktop Automation Plugins, it works.

Recorded a video here:

 

Code used:

set(#username,"YOUR-USERNAME","Global")
set(#password,"YOUR-PASSWORD","Global")
comment("launch real browser")
plugin command("Browser Automation.dll", "browser cleaning up", "False")
plugin command("Browser Automation.dll", "browser chrome add excluded arguments", "enable-automation")
plugin command("Browser Automation.dll", "browser chrome add arguments", "--disable-blink-features=AutomationControlled")
plugin command("Browser Automation.dll", "browser connect", "Chrome", "30,0,30,10", "True", "False", "False")
alert("browser launch ok?")
comment("login to your reddit account")
plugin command("Browser Automation.dll", "browser navigate", "https://www.reddit.com/login/")
wait(2)
plugin command("Browser Automation.dll", "browser element type text", "Id[0]:loginUsername", #username, "False", 0)
wait(2)
plugin command("Browser Automation.dll", "browser element type text", "Id[0]:loginPassword", #password, "False", 0)
wait(2)
plugin command("Browser Automation.dll", "browser mouse click", "Class[0]:AnimatedForm__submitButton m-full-width", "Left Click")
wait(5)
alert("login ok?")
comment("click \"create post\"")
plugin command("Browser Automation.dll", "browser mouse click", "Attribute[0]:aria-label=Create Post", "Left Click")
wait(1)
comment("fill in title")
plugin command("Browser Automation.dll", "browser element type text", "Attribute[0]:placeholder=Title", "This is just a demo title", "False", 0)
plugin command("Browser Automation.dll", "browser element type text", "Class[0]:notranslate public-DraftEditor-content", "This is just a demo description", "False", 0)
alert("basic fill ok?")
comment("click \"Image & Video\" tab")
plugin command("Browser Automation.dll", "browser mouse click", "Class[1]:Z1w8VkpQ23E1Wdq_My3U4 ", "Left Click")
comment("upload your image")
plugin command("Browser Automation.dll", "browser element change file field", "Class[0]:sU2P34us34ODfjtvAFHEh ", "C:\\YOUR-PATH\\YOUR-IMAGE.png")
alert("image upload ok?")
stop script
comment("alternative: go back to post area first")
image to post area()
define image to post area {
    plugin command("Browser Automation.dll", "browser mouse click", "Class[13]:Nb7NCPTlQuxN_WDPUg5Q2", "Left Click")
    wait(2)
    plugin command("Desktop Automation.dll", "send keys focus active window", "C:\\YOUR-PATH\\YOUR-IMAGE.png", "Mode 1", 0, 0)
    wait(1)
    plugin command("Desktop Automation.dll", "send keys focus active window", "\{ENTER\}", "Mode 1", 0, 0)
}

 

Link to post
Share on other sites
10 hours ago, PRO said:

Hello. I just tried it using Automaxed Browser Automation & Desktop Automation Plugins, it works.

Recorded a video here:

 

Code used:

set(#username,"YOUR-USERNAME","Global")
set(#password,"YOUR-PASSWORD","Global")
comment("launch real browser")
plugin command("Browser Automation.dll", "browser cleaning up", "False")
plugin command("Browser Automation.dll", "browser chrome add excluded arguments", "enable-automation")
plugin command("Browser Automation.dll", "browser chrome add arguments", "--disable-blink-features=AutomationControlled")
plugin command("Browser Automation.dll", "browser connect", "Chrome", "30,0,30,10", "True", "False", "False")
alert("browser launch ok?")
comment("login to your reddit account")
plugin command("Browser Automation.dll", "browser navigate", "https://www.reddit.com/login/")
wait(2)
plugin command("Browser Automation.dll", "browser element type text", "Id[0]:loginUsername", #username, "False", 0)
wait(2)
plugin command("Browser Automation.dll", "browser element type text", "Id[0]:loginPassword", #password, "False", 0)
wait(2)
plugin command("Browser Automation.dll", "browser mouse click", "Class[0]:AnimatedForm__submitButton m-full-width", "Left Click")
wait(5)
alert("login ok?")
comment("click \"create post\"")
plugin command("Browser Automation.dll", "browser mouse click", "Attribute[0]:aria-label=Create Post", "Left Click")
wait(1)
comment("fill in title")
plugin command("Browser Automation.dll", "browser element type text", "Attribute[0]:placeholder=Title", "This is just a demo title", "False", 0)
plugin command("Browser Automation.dll", "browser element type text", "Class[0]:notranslate public-DraftEditor-content", "This is just a demo description", "False", 0)
alert("basic fill ok?")
comment("click \"Image & Video\" tab")
plugin command("Browser Automation.dll", "browser mouse click", "Class[1]:Z1w8VkpQ23E1Wdq_My3U4 ", "Left Click")
comment("upload your image")
plugin command("Browser Automation.dll", "browser element change file field", "Class[0]:sU2P34us34ODfjtvAFHEh ", "C:\\YOUR-PATH\\YOUR-IMAGE.png")
alert("image upload ok?")
stop script
comment("alternative: go back to post area first")
image to post area()
define image to post area {
    plugin command("Browser Automation.dll", "browser mouse click", "Class[13]:Nb7NCPTlQuxN_WDPUg5Q2", "Left Click")
    wait(2)
    plugin command("Desktop Automation.dll", "send keys focus active window", "C:\\YOUR-PATH\\YOUR-IMAGE.png", "Mode 1", 0, 0)
    wait(1)
    plugin command("Desktop Automation.dll", "send keys focus active window", "\{ENTER\}", "Mode 1", 0, 0)
}

 

OK thank you 

I will look into it 

Link to post
Share on other sites
19 hours ago, PRO said:

Hello. I just tried it using Automaxed Browser Automation & Desktop Automation Plugins, it works.

Recorded a video here:

 

Code used:

set(#username,"YOUR-USERNAME","Global")
set(#password,"YOUR-PASSWORD","Global")
comment("launch real browser")
plugin command("Browser Automation.dll", "browser cleaning up", "False")
plugin command("Browser Automation.dll", "browser chrome add excluded arguments", "enable-automation")
plugin command("Browser Automation.dll", "browser chrome add arguments", "--disable-blink-features=AutomationControlled")
plugin command("Browser Automation.dll", "browser connect", "Chrome", "30,0,30,10", "True", "False", "False")
alert("browser launch ok?")
comment("login to your reddit account")
plugin command("Browser Automation.dll", "browser navigate", "https://www.reddit.com/login/")
wait(2)
plugin command("Browser Automation.dll", "browser element type text", "Id[0]:loginUsername", #username, "False", 0)
wait(2)
plugin command("Browser Automation.dll", "browser element type text", "Id[0]:loginPassword", #password, "False", 0)
wait(2)
plugin command("Browser Automation.dll", "browser mouse click", "Class[0]:AnimatedForm__submitButton m-full-width", "Left Click")
wait(5)
alert("login ok?")
comment("click \"create post\"")
plugin command("Browser Automation.dll", "browser mouse click", "Attribute[0]:aria-label=Create Post", "Left Click")
wait(1)
comment("fill in title")
plugin command("Browser Automation.dll", "browser element type text", "Attribute[0]:placeholder=Title", "This is just a demo title", "False", 0)
plugin command("Browser Automation.dll", "browser element type text", "Class[0]:notranslate public-DraftEditor-content", "This is just a demo description", "False", 0)
alert("basic fill ok?")
comment("click \"Image & Video\" tab")
plugin command("Browser Automation.dll", "browser mouse click", "Class[1]:Z1w8VkpQ23E1Wdq_My3U4 ", "Left Click")
comment("upload your image")
plugin command("Browser Automation.dll", "browser element change file field", "Class[0]:sU2P34us34ODfjtvAFHEh ", "C:\\YOUR-PATH\\YOUR-IMAGE.png")
alert("image upload ok?")
stop script
comment("alternative: go back to post area first")
image to post area()
define image to post area {
    plugin command("Browser Automation.dll", "browser mouse click", "Class[13]:Nb7NCPTlQuxN_WDPUg5Q2", "Left Click")
    wait(2)
    plugin command("Desktop Automation.dll", "send keys focus active window", "C:\\YOUR-PATH\\YOUR-IMAGE.png", "Mode 1", 0, 0)
    wait(1)
    plugin command("Desktop Automation.dll", "send keys focus active window", "\{ENTER\}", "Mode 1", 0, 0)
}

 

Where do I get the Desktop PLugin ? 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...