flexboj 0 Posted August 15, 2014 Report Share Posted August 15, 2014 Hi guys, How do I make stat monitor calculate my specific clicks?Like if i make a script that clicks on links with a text "Post" and it would calculate all those clicks.I hope that makes any sense lol Quote Link to post Share on other sites
UBotDev 276 Posted August 15, 2014 Report Share Posted August 15, 2014 You need to use a variable to store number of clicks (incrementing the variable every time click is executed). Then you just need to assign that variable to "stat monitor". Actually, here is a quick example: ui stat monitor("COUNTER", #COUNTER) set(#COUNTER, 0, "Global") loop(5) { increment(#COUNTER) wait(1) } Quote Link to post Share on other sites
flexboj 0 Posted August 15, 2014 Author Report Share Posted August 15, 2014 I've played with stat monitor before but I don't how to assign a variable to clicks with different offsets and then calculate themhere's an example.. loop(30) { click($element offset(<class="btn btn-default btn-xs Post">, 1), "Left Click", "No") wait($rand(20, 30)) click($element offset(<class="btn btn-default btn-xs Post">, 2), "Left Click", "No") wait($rand(20, 30)) click($element offset(<class="btn btn-default btn-xs Post">, 3), "Left Click", "No") wait($rand(20, 30)) click($element offset(<class="btn btn-default btn-xs Post">, 4), "Left Click", "No") wait($rand(20, 30)) click($element offset(<class="btn btn-default btn-xs Post">, 5), "Left Click", "No") wait($rand(20, 30)) click($element offset(<class="btn btn-default btn-xs Post">, 6), "Left Click", "No") Quote Link to post Share on other sites
HelloInsomnia 1103 Posted August 15, 2014 Report Share Posted August 15, 2014 You can increment the variable after each click that way it keeps track of how many clicks it's done. 1 Quote Link to post Share on other sites
flexboj 0 Posted August 15, 2014 Author Report Share Posted August 15, 2014 You can increment the variable after each click that way it keeps track of how many clicks it's done. Thanks man! Got it to work now 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.