JamesC 0 Posted July 23, 2012 Report Share Posted July 23, 2012 Hi guys, I am pulling out my copy of Ubot again and I'm trying to find the information I need. Basically I know what I want to do, but I am stopped at these things: 1. Creating an input box for keywords I want to use for alerts 2. Looping so it goes through and adds every keyword I place in the box (I guess I'll need to give some kind of variable for how many keywords I am using or have a set amount. I don't know) I believe that's it. I already have the steps I need to add one alert. Now I just need Ubot to do it for every keyword I place in a box somewhere. I'm new, but I know I can pick this up very quickly. I just need direction onhow to accomplish this or even which tutorials explain it. Thanks for your help, James Quote Link to post Share on other sites
k1lv9h 76 Posted July 24, 2012 Report Share Posted July 24, 2012 Hi, I see you can not download files. This forum topic http://www.ubotstudio.com/forum/index.php?/topic/7731-getting-errors-posting/ has what you need to do to have the limits lifted. This Code sample has a keyword input box:ui block text("list", #keywordlist) clear list(%keywords) add list to list(%keywords, $list from text(#keywordlist, $new line), "Delete", "Global") if($exists(<id="kd-appswitcher">)) { then { } else { navigate("http://www.google.com/alerts", "Wait") } } loop($list total(%keywords)) { if($comparison($list position(%keywords), "<", $list total(%keywords))) { then { change attribute(<name="q">, "value", $nothing) type text(<name="q">, $next list item(%keywords), "Standard") wait(5) } else { } } } sample-google-alert-001.ubot This Code sample can read keywords from file:ui open file("KW file", #keywordlist) clear list(%keywords) add list to list(%keywords, $list from text($read file(#keywordlist), $new line), "Delete", "Global") if($exists(<id="kd-appswitcher">)) { then { } else { navigate("http://www.google.com/alerts", "Wait") } } loop($list total(%keywords)) { if($comparison($list position(%keywords), "<", $list total(%keywords))) { then { change attribute(<name="q">, "value", $nothing) type text(<name="q">, $next list item(%keywords), "Standard") wait(5) } else { } } }sample-google-alert-002.ubot Kevin Quote Link to post Share on other sites
JamesC 0 Posted July 24, 2012 Author Report Share Posted July 24, 2012 Hi Kevin, Thank you so much for that. I'm going to go and test them outnow. James Hi, I see you can not download files. This forum topic http://www.ubotstudio.com/forum/index.php?/topic/7731-getting-errors-posting/ has what you need to do to have the limits lifted. This Code sample has a keyword input box:ui block text("list", #keywordlist) clear list(%keywords) add list to list(%keywords, $list from text(#keywordlist, $new line), "Delete", "Global") if($exists(<id="kd-appswitcher">)) { then { } else { navigate("http://www.google.com/alerts", "Wait") } } loop($list total(%keywords)) { if($comparison($list position(%keywords), "<", $list total(%keywords))) { then { change attribute(<name="q">, "value", $nothing) type text(<name="q">, $next list item(%keywords), "Standard") wait(5) } else { } } } sample-google-alert-001.ubot This Code sample can read keywords from file:ui open file("KW file", #keywordlist) clear list(%keywords) add list to list(%keywords, $list from text($read file(#keywordlist), $new line), "Delete", "Global") if($exists(<id="kd-appswitcher">)) { then { } else { navigate("http://www.google.com/alerts", "Wait") } } loop($list total(%keywords)) { if($comparison($list position(%keywords), "<", $list total(%keywords))) { then { change attribute(<name="q">, "value", $nothing) type text(<name="q">, $next list item(%keywords), "Standard") wait(5) } else { } } }sample-google-alert-002.ubot Kevin Quote Link to post Share on other sites
JamesC 0 Posted July 25, 2012 Author Report Share Posted July 25, 2012 Ok, so I took the file you gave and now it's sort of working. ;-) What am I doing wrong here? I'm trying to get it to go throughthe process of adding the alert and navigating back and go throughcertain steps again when adding the alert. Also I had set the bot up to login first, but I just put the typecommand instead of adding a box for password and email. Thank you for your time and let me know your thoughts. James Hi Kevin, Thank you so much for that. I'm going to go and test them outnow. James Quote Link to post Share on other sites
k1lv9h 76 Posted July 25, 2012 Report Share Posted July 25, 2012 Hi James, Give this a try:sample-google-alert-004.ubot Kevin 1 Quote Link to post Share on other sites
JamesC 0 Posted July 25, 2012 Author Report Share Posted July 25, 2012 Hi James, Give this a try:sample-google-alert-004.ubot Kevin Hey Kevin, I'm going to play around with it a little more. I just about got it and I understand better how things are working now. I appreciate you very much. 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.