Jump to content
Sign in to follow this  
Crome_BAD

Decimal To Hex

Recommended Posts

Crome_BAD

Just a quick question. Is there a way to convert decimal to hex? Does sum1 have a script made for this?

Peace,

Crome_BAD

Share this post


Link to post
Share on other sites
Crome_BAD

Well, i didnt see that, thank you alot. Would that work for...

Do

Sleep(10)

Until PixelGetColor( 15, 15) = Hex(<Sum Number>)

Share this post


Link to post
Share on other sites
Crome_BAD

Nice, ty alot. Been trying to figure it out for alittle while....lol

Share this post


Link to post
Share on other sites
Helge

Still trying to figure it out ?

MsgBox(64,"","Dec : 255255255" & @CRLF & "Hex : " & Hex(255255255,6))

Share this post


Link to post
Share on other sites
Crome_BAD

Nope i got it now, now im having the trouble of when i click the X ($GUI_EVENT_CLOSE) it doesen't work because of the Do/Until loop, i added in

If $msg = $GUI_EVENT_CLOSE Then
Exit
EndIf

Thats added inside the DO loops, but it still wont work....

Any Suggestions?

Share this post


Link to post
Share on other sites
Helge

Try this :

Do
Sleep(10)

$msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then Exit

Until PixelGetColor( 15, 15) = Hex(255255255,6)

Good luck !

Share this post


Link to post
Share on other sites
Crome_BAD

Yes works wonders now, gotta write all thius stuff down, lol.

Crome_BAD

Share this post


Link to post
Share on other sites
ezzetabi

What is that Hex(255255255,6) ?

It seems you wanted the pure white in a quite original way... LOL.

I guess you meant

Hex(16777215,6)

In fact 255255255 is F36E2D7 in hex that have a digit more than 6... This is crazy!

Share this post


Link to post
Share on other sites
Helge

Hehe !

Actually I don't know what I wanted, however it seems like it helped Crome_BAD :D

Happy to help :idiot:

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.