What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » How to check the Plus! version

How to check the Plus! version
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: dodgy bug in scripting
quote:
Originally posted by Choli
quote:
Originally posted by CookieRevised
Seems like single precision doesn't yield the accurate result, double precision does.
4.1 is a periodic number in base 2, it doesn't matter if you choose single or double precission
That page I linked to does tell/show it makes a big difference though (also the docs I've read on it -quickly- say it does) :/ ....

---------------------

EDIT:

- Requested thread to be moved to public scripting forum.

- For those who whish to check versions, use something like this to avoid the floating point trap and to have an as accurate as possible build check:
code:
function _isValidVersion(nSoftwareBuild) {
        return parseInt(MsgPlus.Version) * 1000 + MsgPlus.VersionBuild >= nSoftwareBuild
}
Where nSoftwareBuild is a number in the form of 4244, 4250, 5398, etc...

This is the exact same method used by Plus! itself to check for updates and stuff. And since the major version number and build number will always uniquely define the installed version (the minor version number doesn't matter).

The function will return true if the user's version is equal or higher than the requested softwarebuild.

This post was edited on 01-13-2007 at 08:22 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
11-17-2006 10:00 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
How to check the Plus! version - by Choli on 11-12-2006 at 11:05 AM
RE: dodgy bug in scripting - by NiteMare on 11-12-2006 at 11:59 AM
RE: dodgy bug in scripting - by Mnjul on 11-12-2006 at 12:00 PM
RE: dodgy bug in scripting - by Choli on 11-12-2006 at 12:10 PM
RE: dodgy bug in scripting - by Patchou on 11-15-2006 at 04:54 AM
RE: dodgy bug in scripting - by Choli on 11-16-2006 at 08:36 PM
RE: dodgy bug in scripting - by CookieRevised on 11-17-2006 at 01:59 AM
RE: dodgy bug in scripting - by Patchou on 11-17-2006 at 07:07 AM
RE: dodgy bug in scripting - by Choli on 11-17-2006 at 10:07 AM
RE: dodgy bug in scripting - by Patchou on 11-17-2006 at 06:25 PM
RE: dodgy bug in scripting - by CookieRevised on 11-17-2006 at 10:00 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