Jump to content
UBot Underground

Windows Commands Not Working


Recommended Posts

 Hi, I just wrote a Ubot script and during creating phase was able to command the mouse to move over some text and select it.   Then, I used the Windows Command "keyboard event" to hold control down. Then used Windows Command "type Keys" to  enter "c" to "copy" this text.

 

http://i63.tinypic.com/23lyvtd.jpg

 

 While it worked in the creation phase, Ubot appears to completely ignore these commands when I run the script. Why is that?

 

 All I'm trying to do is copy this text and have to do it this way because  I'm using Chrome 49. It only lets me grab the text with Chrome 21 browser but where I'm pasting it won't respond to Chrome 49.

 

 What can I do to perform a simple copy and paste guys?

Link to post
Share on other sites

In this case its much better to use the scrape attribute function: http://wiki.ubotstudio.com/wiki/Scrape_Attribute

 

Using Windows Commands are not needed unless you need to control another program outside of Ubot. 

 

If you post the link I can show you how to scrape it. Once it is scraped in a variable you can then use it anywhere.

Link to post
Share on other sites

In this case its much better to use the scrape attribute function: http://wiki.ubotstudio.com/wiki/Scrape_Attribute

 

Using Windows Commands are not needed unless you need to control another program outside of Ubot. 

 

If you post the link I can show you how to scrape it. Once it is scraped in a variable you can then use it anywhere.

 

 

http://ftr.fivefilters.org/makefulltextfeed.php?url=http:%2F%2Fwww.latimes.com%2Ftopic%2Fdisasters-accidents%2Ftransportation-disasters-accidents%2Ftraffic-accidents%2F03010001-topic.html&max=10

 

Please show me how I can get this in Ubot's chrome 49 browser. I am stuck on this.

Link to post
Share on other sites

Here is how you can get the article and clean it up a bit it still needs a bit of love like to put spaces back after the periods but it should be pretty good.

set(#get,$read file("http://ftr.fivefilters.org/makefulltextfeed.php?url=http://www.latimes.com/topic/disasters-accidents/transportation-disasters-accidents/traffic-accidents/03010001-topic.html&max=10"),"Global")
set(#title,$plugin function("XpathPlugin.dll", "$Generic Xpath Parser", #get, "//item/title", "innertext", ""),"Global")
set(#articleOriginal,$plugin function("XpathPlugin.dll", "$Generic Xpath Parser", #get, "//item/description", "innertext", ""),"Global")
set(#article,$replace($strip tags($unescape html(#articleOriginal)),"Let\'s block ads! (Why?)",$nothing),"Global")

This uses the $read file function basically as a get request because you're trying to get a feed and it's not really being shown properly to the browser that's why you are having problems I think. So this way just gets the raw feed.

 

Then it gets the title and the original article this part uses Dans Xpath Plugin (free)

 

The last part I think you need to be subscribed to Ubot updates for that part basically first puts the html tags back into place and then it removes them and then it removes the text about blocking ads. You could do it other ways but I figured if you have these commands then its easier to start here and if you don't then maybe somebody can come up with a regex or something instead.

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...