Jump to content

PixelGetColor Problem


Recommended Posts

Hello,

I am trying to use PixelGetColor to test if a screen showed up. The code for it is:

CODE
If PixelGetColor(601, 148) == 3362416 Then

ExitLoop(2)

I checked the color by putting a message box when the color was needed to be checked. Even when the message box says the color is correct, the execution never gets to exit loop. Any suggestions?

Link to comment
Share on other sites

Hello,

I am trying to use PixelGetColor to test if a screen showed up. The code for it is:

CODE
If PixelGetColor(601, 148) == 3362416 Then

ExitLoop(2)

I checked the color by putting a message box when the color was needed to be checked. Even when the message box says the color is correct, the execution never gets to exit loop. Any suggestions?

Post your other code. As there are no real problems with what you currently have. By the way just use code not codebox if you have a small amount of code.

Edited by Thatsgreat2345
Link to comment
Share on other sites

CODE
AutoItSetOption ( "ColorMode", 1 )

AutoItSetOption("WinTitleMatchMode", 3)

AutoItSetOption("WinWaitDelay", 1000)

AutoItSetOption ("PixelCoordMode", 0)

AutoItSetOption ("MouseCoordMode", 0)

$curpin = 0

$knownuser = "username"

$knownpass = "password"

$knownpin = "9999"

$crackuser = "oldaccount"

$crackpass = "oldpass"

;Run("C:\Nexon\MapleStory\dxwnd.exe")

Sleep(1000)

Run("C:\Nexon\MapleStory\good49ggless")

Sleep(30000)

HotKeySet("{f12}", "StopProgramz")

While 1

MouseClick("left", 497,278, 2)

Send($crackuser)

Send("{tab}")

For $i = 1 to 15

Send("{backspace}")

Next

Send($crackpass)

Send("{enter}")

For $i = 1 to 4

$lolzpin = PinToString($curpin)

AutoItSetOption("MouseCoordMode", 1)

SplashTextOn("Lolz Pin", "lolzpin = " & $lolzpin, 100, 50, 789, 623)

WinActivate("MapleStory")

AutoItSetOption("MouseCoordMode", 0)

Send($lolzpin)

Send("{enter}")

Sleep(1000)

If PixelGetColor(601, 148) = 3362416 Then

ExitLoop(2)

MsgBox(0, "Pin is: ", $lolzpin)

EndIf

$curpin = $curpin + 1

Next

Sleep(1000)

Send("{esc}")

Sleep(1000)

MouseClick("left", 497,278, 2)

Send($knownuser)

Send("{tab}")

For $i = 1 to 15

Send("{backspace}")

Next

Send($knownpass)

Send("{enter}")

Sleep(1000)

Send($knownpin)

Send("{enter}")

Sleep(1000)

MouseClick("left", 70, 474)

Send("{enter}")

Sleep(1000)

WEnd

Func PinToString($pin)

if $pin < 10 Then

Return "000" & $pin

ElseIf $pin < 100 Then

Return "00" & $pin

ElseIf $pin < 1000 Then

Return "0" & $pin

Else

Return "" & $pin

EndIf

EndFunc

Func StopProgramz()

Exit

EndFunc

I'm using this to get an old maple story account back

Link to comment
Share on other sites

  • 2 months later...

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...