Sign in to follow this  
Followers 0
TheSorc3r3r

PixelGetColor Problem

6 posts in this topic

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?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

It has gameguard, you can not use pixel functions on a game with gameguard. They might of made some changes so you can use pixel functions, but you won't be able to use Send/MouseClick

Edited by Thatsgreat2345

Share this post


Link to post
Share on other sites

I have disabled GG. all keyboard/mouse functions work.

Share this post


Link to post
Share on other sites

I have disabled GG. all keyboard/mouse functions work.

How do disable gameguard?

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