Erfan

Facebook bot

7 posts in this topic

Hey guys,

i need help at my bot :( I want a facebook bot which is checking who is the last comment .

XAnbY5o.png

If the guy doesnt have a black pic the bot will post my text and if im the last the side is refreshing but i dont know why it dosend working. Here is the code 

 

#RequireAdmin

HotKeySet("{F7}","Start")
HotKeySet("{F8}","Stop")

While 1
    sleep(1)
WEnd

Func Start()
    While 1
        Local $coord = PixelSearch(426, 432, 436, 431, 0x000103)
        If Not @error Then
            Sleep(3000)
            Send("{F5}")
        EndIf

        $coord = PixelSearch(426, 432, 436, 431, 0x000103)
        If Not @error Then
            MouseClick ("left", 471, 900)
            Sleep(2000)
            Send ("@Ali Elchafei")
            Sleep (1000)
            Send ("({Enter})")
        EndIf
    WEnd
EndFunc

Func Stop()
    Exit 0
EndFunc

Share this post


Link to post
Share on other sites



@Erfan,

Please do not bump your own threads within 24 hours.
Remember this is not a 24/7 support forum - those who answer are only here because they like helping others and have some time to spare.  You just have to wait until someone who knows something about your particular problem, and is willing to help, comes online.

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

You should use some debug code to determine what the script is detecting as a pixel value when someone comments. 

MsgBox(0,"Coordinate Detected", "The pixel detected is: " & $coord)


Get Scite to add a popup when you use a 3rd party UDF -> http://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/user-calltip-manager.html

Share this post


Link to post
Share on other sites

I would suggest, that what you are attempting to do, is much more difficult than the effort is worth, especially with the fluctuating state that is Facebook much of the time. I cannot see how you would get much accuracy for long.

You would be better off using a Scrape and Filter process ... if that would indeed even work within the bounds of Facebook.


AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Share this post


Link to post
Share on other sites

You can use IE. (keep logged in) go to that comments page. go through that fields and check if it's your comment.

an alternative can be using ImagenSearch.

 

Saludos

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