joeyone Posted November 7, 2007 Posted November 7, 2007 (edited) if i have for example some different color codes 16645495 16645495 16448117 16448116 16513910 16513909 16513653 16448116 and then instead of having the whole code i just want to have the first three numbers in the code like this 166 166 164 164 165 165 165 164 so how can i turn colorcodes to only the first 3 digits? Edited November 7, 2007 by joeyone
CoePSX Posted November 7, 2007 Posted November 7, 2007 #include <Color.au3> ; Get the RED part of the color MsgBox (0, "Color", _ColorGetRed (0xFFAA66)) ; Get the first 3 digits of the decimal color representation MsgBox (0, "Color", StringLeft (String (16448117), 3)) [quote name='Valik' post='301213' date='Jan 31 2007, 10:36 PM']You seem to have a habit of putting things in the wrong place. I feel sorry for any female you attempt to have sex with.[/quote][font="Lucida Sans Unicode"]╔══════════════════════════════╗║░░██░░░░░░░░██░░███░░░████░░░█║║░█░░█░░██░░█░░█░█░░█░█░░░░█░█░║║░█░░░░█░░█░████░███░░░██░░░█░░║║░█░░█░█░░█░█░░░░█░░░░░░░█░█░█░║║░░██░░░██░░░██░░█░░░░███░█░░░█║╚══════════════════════════════╝[/font]
joeyone Posted November 7, 2007 Author Posted November 7, 2007 thats exactly what i wanted thanks alot!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now