Sign in to follow this  
Followers 0
heyhey

Script is not working like it should

4 posts in this topic

#1 ·  Posted (edited)

Removed

Edited by heyhey

Share this post


Link to post
Share on other sites



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

#4 ·  Posted (edited)

Edit : Sorry , didn't read his post good enhough, problem fixed.

Edited by heyhey

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