WriteDWORD - sending hex value from 3 decimal values - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4) +---- Forum: Scripting (/forumdisplay.php?fid=39) +----- Thread: WriteDWORD - sending hex value from 3 decimal values (/showthread.php?tid=79840) WriteDWORD - sending hex value from 3 decimal values by MeEtc on 12-09-2007 at 09:04 PM
code: How can I pass RGB colour values in a string to this function? I swear I'm not making all these posts to get a higher post count, honest! RE: WriteDWORD - sending hex value from 3 decimal values by ShawnZ on 12-09-2007 at 09:23 PM
var blue = 0xFF; RE: WriteDWORD - sending hex value from 3 decimal values by MeEtc on 12-09-2007 at 09:56 PM
that doesn't help, if the values are coming from a string, like "#RRGGBB". So I use substr to separate the 3 colour values, but that doesn't turn it into a hex value code: RE: WriteDWORD - sending hex value from 3 decimal values by Matti on 12-10-2007 at 11:47 AM
Noes! You do know that eval() is evil? code: RE: WriteDWORD - sending hex value from 3 decimal values by Felu on 12-10-2007 at 11:52 AM
quote:Rather code: Just saw that both the methods give different results . code: RE: WriteDWORD - sending hex value from 3 decimal values by Matti on 12-10-2007 at 12:10 PM
Riiiiight! |