uRobot 1 Posted July 22, 2016 Report Share Posted July 22, 2016 Hello, I am trying to paste an html code into a text area... (around 2000+ lines)... at first I tried copy to clipboard and send special keys (CTRL+V) using exbrowser... and it work just fine... (FOR SINGLE THREAD)... but I started having problem with MULTI-THREAD... (is it possible to do local on copy to clipboard????) the problem is... that each thread is supposed to have a UNIQUE HTML CODE... but since copy to clipboard is pretty much pressing CTRL+C to copy... and CTRL+V to paste... one or two threads gets a SIMILAR HTML CODE from time to time... especially if I increase the thread number further... I also tried TYPE TEXT... this one is okay with single thread and multi thread... however... even if I set a "ZERO" delay... the script takes a very sweet time trying to transfer an HTML CODE from variable #html into a text area... (it takes around 30 to 120seconds)... pretty much trying to type each line... one by one... What do you guys suggest I do? is there a command or function that I am missing? Is there a different approach that I should take? Quote Link to post Share on other sites
deliter 203 Posted July 22, 2016 Report Share Posted July 22, 2016 post the HTML of the area you are trying to scrape Quote Link to post Share on other sites
uRobot 1 Posted July 22, 2016 Author Report Share Posted July 22, 2016 Hi deliter, I am not scraping... i am trying to put html code from notepad into a website... Quote Link to post Share on other sites
deliter 203 Posted July 22, 2016 Report Share Posted July 22, 2016 take a look at this code,it reads a file,sets a variable for that file ui open file("Pick HTML File",#file) set(#myHTML,$read file(#file),"Global") define pasteHTML(#html) { in new browser { navigate("www.pastebin.com","Wait") wait for browser event("DOM Ready","") wait for browser event("Everything Loaded","") type text(<id="paste_code">,#html,"Standard") wait(10) } } thread spawn(5,5) { pasteHTML(#myHTML) } Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.