LazyBotter 188 Posted February 15, 2013 Report Share Posted February 15, 2013 Just been playing around to see if I could schedule a bot to run a define command and it worked! Just thought id share to see if anyone wanted to play around with the script... ui html panel("<!DOCTYPE html><html lang=\"en\"> <head> <meta charset=\"utf-8\"> <meta name=\"generator\" content=\"CoffeeCup HTML Editor (www.coffeecup.com)\"> <meta name=\"dcterms.created\" content=\"Fri, 15 Feb 2013 12:42:09 GMT\"> <meta name=\"description\" content=\"\"> <meta name=\"keywords\" content=\"\"> <title></title> <!--[if IE]> <script src=\"http://html5shim.googlecode.com/svn/trunk/html5.js\"></script> <![endif]--> </head> <body style=\"background-color:#F4F4F4\"> <style> fieldset \{border:1px solid #FF0000;\} </style><fieldset style=\"width:30%;\"><legend style=\"font-weight:bold;\" >Schedule Submissions</legend><table><th>Month:</th><th>Day:</th><th>Year:</th><th>Current: </th><th>Scheduled: </th><tr><td> <select variable=\"#Month\"><option>00</option><option>01</option><option>02</option><option>03</option><option>04</option><option>05</option><option>06</option><option>07</option><option>08</option><option>09</option><option>10</option><option>11</option><option>12</option></select></td><td><select variable=\"#Day\"><option>00</option><option>01</option><option>02</option><option>03</option><option>04</option><option>05</option><option>06</option><option>07</option><option>08</option><option>09</option><option>10</option><option>11</option><option>12</option><option>13</option><option>14</option><option>15</option><option>16</option><option>17</option><option>18</option><option>19</option><option>20</option><option>21</option><option>22</option><option>23</option><option>24</option><option>25</option><option>26</option><option>27</option><option>28</option><option>29</option></select></td><td><select variable=\"#Year\"><option>2013</option><option>2014</option><option>2015</option><option>2016</option><option>2017</option></select></td><td><span variable=\"#Current\" fillwith=\"innertext\"></span></td><td><span variable=\"#Scheduled\" fillwith=\"innertext\"></span></td></tr></table><table><th>Hour:</th><th>Min:</th><tr><td><select variable=\"#Hour\"><option>01</option><option>02</option><option>03</option><option>04</option><option>05</option><option>06</option><option>07</option><option>08</option><option>09</option><option>10</option><option>11</option><option>12</option><option>13</option><option>14</option><option>15</option><option>16</option><option>17</option><option>18</option><option>19</option><option>20</option><option>21</option><option>22</option><option>23</option><option>24</option></select></td><td><select variable=\"#Min\"><option>01</option><option>02</option><option>03</option><option>04</option><option>05</option><option>06</option><option>07</option><option>08</option><option>09</option><option>10</option><option>11</option><option>12</option><option>13</option><option>15</option><option>16</option><option>17</option><option>18</option><option>19</option><option>20</option><option>21</option><option>22</option><option>23</option><option>24</option><option>24</option><option>26</option><option>27</option><option>28</option><option>29</option><option>30</option><option>31</option><option>32</option><option>33</option><option>34</option><option>35</option><option>36</option><option>37</option><option>38</option><option>38</option><option>40</option><option>41</option><option>42</option><option>43</option><option>44</option><option>45</option><option>46</option><option>47</option><option>48</option><option>49</option><option>50</option><option>51</option><option>52</option><option>53</option><option>54</option><option>55</option><option>56</option><option>57</option><option>58</option><option>59</option><option>60</option></select></td><td><button onclick=\"ubot.runScript(\'Check()\')\">Current</button></td><td><button onclick=\"ubot.runScript(\'Set()\')\">Set</button></td><td><button onclick=\"ubot.runScript(\'Run()\')\">Start</button></td><td><button onclick=\"ubot.runScript(\'Stop()\')\">Stop</button></td></tr></table>Stat: <span variable=\"#Stat\" fillwith=\"innertext\"></span></fieldset> </body></html>", 200)define Run { set(#StartLoop, 1, "Global") set(#StopLoop, 1, "Global") loop while($comparison(#StartLoop, "=", #StopLoop)) { set(#Current, $date, "Global") if($comparison(#Current, "=", "{#Date} {#Time}")) { then { set(#StopLoop, 0, "Global") set(#Stat, "Running script...", "Global") Run Script() } else { } } }}define Set { set(#Date, "{#Month}/{#Day}/{#Year}", "Global") set(#Time, "{#Hour}:{#Min}:00", "Global") set(#Prompt, $confirm("Set Submission To Run On:{$new line}Date: {#Date}{$new line}Time: {#Time}"), "Global") if($comparison(#Prompt, "=", $true)) { then { set(#Scheduled, "{#Date} {#Time}", "Global") alert("Submission Scheduled!") } else { alert("Schedule NOT set!") } }}define Check { set(#Current, $date, "Global")}define Stop { set(#StopLoop, 0, "Global")}comment("SCRIPT TO RUN HERE")define Run Script { navigate("http://www.ubotstudio.com/playground/simple-form", "Wait") type text(<username field>, "Scuedule ", "Standard") type text(<first name field>, "Is Running!", "Standard") wait(10) set(#Stat, "Finished running script!", "Global")} Hope You Like... Carl 10 Quote Link to post Share on other sites
HelloInsomnia 1103 Posted February 15, 2013 Report Share Posted February 15, 2013 This seems to only be the HTML? Quote Link to post Share on other sites
LazyBotter 188 Posted February 15, 2013 Author Report Share Posted February 15, 2013 Sorry... Edited post above.. Quote Link to post Share on other sites
a2mateit 395 Posted February 15, 2013 Report Share Posted February 15, 2013 VERY Nice! If I could like your post more than once I WOULD! Quote Link to post Share on other sites
pftg4 102 Posted February 15, 2013 Report Share Posted February 15, 2013 wow very nice share thank you Quote Link to post Share on other sites
illmill 87 Posted February 16, 2013 Report Share Posted February 16, 2013 So the purpose of this is so that bots you sell can be scheduled? I have lots of bots that run automatically on a schedule. I just do a define command with the script and onload run that command. Schedule the bot to run inside windows task scheduler. It's very easy, but I guess I can see the benefit of scheduling bots you sell to customers. Quote Link to post Share on other sites
Legend 181 Posted February 16, 2013 Report Share Posted February 16, 2013 So the purpose of this is so that bots you sell can be scheduled? I have lots of bots that run automatically on a schedule. I just do a define command with the script and onload run that command. Schedule the bot to run inside windows task scheduler. It's very easy, but I guess I can see the benefit of scheduling bots you sell to customers. You are relying on windows task scheduler (personally I use winautomation) this neat little script is a self-contained option... Quote Link to post Share on other sites
AutomationNinja 194 Posted February 16, 2013 Report Share Posted February 16, 2013 Well how cool is that? Quote Link to post Share on other sites
raptortrex 2 Posted February 16, 2013 Report Share Posted February 16, 2013 Thanks for this share.This will help mea lot on my next project. Quote Link to post Share on other sites
JackCrow 4 Posted April 19, 2013 Report Share Posted April 19, 2013 Carl. If you don't mind me asking, how did you get so good at this bot stuff?? You're like Neo and I'm that dumb broad in the red dress. I've been messing around with the script and it's going to be super helpful for me. I know it's possible but how can I schedule a list of things? If I was able to schedule the scripts needed to run for the coming month then keep the bot open in my virtual desktop I could die a happy man. It can be the same script but how am I able to schedule a series of scripts to run? I was messing around with this before with check boxes and didn't get nearly this far. Jack Quote Link to post Share on other sites
giganut 109 Posted April 19, 2013 Report Share Posted April 19, 2013 This is awsome, great work 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.