Sign in to follow this  
Followers 0
Arethemad

Help Making A VERY Simple Bot

5 posts in this topic

All I want is a bot that clicks, refreshes IE(Using ctrl+r, so it stays in the same screen position), and then repeats the process.

I tried, but failed miserably and am not even relatively close to getting it right. The page I want it to work on is my Facebook homepage, if that helps.

Thanks a ton, whomever helps.

Share this post


Link to post
Share on other sites



umm....look up the Send() function, you could just send a ^r to refresh the page....not sure what you mean about staying the same position on the screen. Could you elaborate a little bit more?

Share this post


Link to post
Share on other sites

Forums just went nuts :whistle:

Fancy...

Hopefully this will set you on the right path:

HotKeySet("{ESC}", "Stop")      ;allows you to exit your never-ending loop

$x = "Enter some coordinate"    ;enter the coords of what you want to click
$y = "Enter some coordinate"

While 1                         ;initiate a neveer-ending loop
    MouseClick("left", $x, $y)
    Send("^r")                  ;this sends Ctrl+R
WEnd

    
Func Stop()
    Exit
EndFunc

IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font]

Share this post


Link to post
Share on other sites

Look up the #include <IE.au3> functions in the help file. Those are more reliable than Send() and Click(x,y)


Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites

Forums just went nuts :whistle:

Fancy...

Hopefully this will set you on the right path:

HotKeySet("{ESC}", "Stop")      ;allows you to exit your never-ending loop

$x = "Enter some coordinate"    ;enter the coords of what you want to click
$y = "Enter some coordinate"

While 1                         ;initiate a neveer-ending loop
    MouseClick("left", $x, $y)
    Send("^r")                  ;this sends Ctrl+R
WEnd

    
Func Stop()
    Exit
EndFunc

Thanks a ton!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0