What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » WriteDWORD - sending hex value from 3 decimal values

WriteDWORD - sending hex value from 3 decimal values
Author: Message:
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
30 / Male / Flag
Joined: Apr 2006
Status: Away
RE: WriteDWORD - sending hex value from 3 decimal values
quote:
Originally posted by Mattike
var color = (blue<<16) + (green<<8) + red;
Rather
code:
var color = (b<<16) + (g<<8) + r;

Just saw that both the methods give different results :S.
code:
var color = (b<<16) + (g<<8) + r; // #001122 => 1444608
var color = eval('0x00'+b+g+r); // #001122 => 139536

This post was edited on 12-10-2007 at 11:57 AM by Felu.
12-10-2007 11:52 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
WriteDWORD - sending hex value from 3 decimal values - by MeEtc on 12-09-2007 at 09:04 PM
RE: WriteDWORD - sending hex value from 3 decimal values - by ShawnZ on 12-09-2007 at 09:23 PM
RE: WriteDWORD - sending hex value from 3 decimal values - by MeEtc on 12-09-2007 at 09:56 PM
RE: WriteDWORD - sending hex value from 3 decimal values - by Matti on 12-10-2007 at 11:47 AM
RE: WriteDWORD - sending hex value from 3 decimal values - by Felu on 12-10-2007 at 11:52 AM
RE: WriteDWORD - sending hex value from 3 decimal values - by Matti on 12-10-2007 at 12:10 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On