Simple PixelSearch problem Topic is solved

Ask gaming related questions (AHK v1.1 and older)
thomasahk1

Simple PixelSearch problem  Topic is solved

23 Jan 2018, 08:35

Hi, I'm trying type my username and password when my game is fully loaded
Could anyone show me an example on how to do this? I've been researching for awhile and nothing seems to work for me.
This will not work for me even when the game is fully loaded
I'm new to ahk so sorry if this is a dumb question!

=::

EventOccured := false
while (EventOccured = false)
{
PixelSearch, Px, Py, 207, 207, 560, 400, 32333B, 3, Fast ; checks for login screen background pixel
if PixelSearch (Px, Py, 207, 207, 560, 400, 32333B)
{
EventOccured := true
}
}
while (EventOccured := true)
MouseMove, 1040, 575
click, 1040, 575
Send, Username
Send, `t
Send, Password
Send, {Enter}

-::exitapp
Mightykiller
Posts: 57
Joined: 09 Oct 2017, 13:34

Re: Simple PixelSearch problem

23 Jan 2018, 10:22

Code: Select all

NumPad1::

    Stop:=0
    i:=0
    While Stop = 0
    {
     
     PixelSearch, Px, Py, 207, 207, 560, 400, 0x2333BF ,,Fast RGB

     if !ErrorLevel
        {
             MouseMove, 1040, 575
             click, 1040, 575
             Send, Username
             Send, `t
             Send, Password
             Send, {Enter}
        }
else {
Msgbox, pixel was not found.
}
     }       
    return

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: Stpham and 59 guests