Jump to content
Sign in to follow this  
heyhey

Script is not working like it should

Recommended Posts

Local $enableO = False

While True
    $color = PixelGetColor(@DesktopWidth / 2, @DesktopHeight / 2)
    If $color = 16711680 Or $color = 16646144 Then
        $enableO = Not $enableO ; Switches $enableO from true to false and false to true
        If $enableO Then
            MouseClick("left")
            Send("{LALT}")
            Send("{O}")
            Sleep(300)
        Else
            MouseClick("left")
            Send("{LALT}")
            Send("{P}")
            Sleep(600)
        EndIf
    EndIf
WEnd

And http://www.autoitscript.com/forum/forum-2/announcement-12-game-bots-and-automation/

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...