well 2522 was out for a while before I new about it so I did this so I could always be up to date. just put it in a button or function somewhere.
local inst = mc.mcGetInstance();
local file = wx.wxFileSystem():OpenFile('http://www.machsupport.com/software/downloads-updates/#tabs-2')
if not file then
wx.wxMessageBox("Update Check is Broken") return
end
local data = file:GetStream()
local text = {}
repeat
local c= data.C
if data:LastRead() ~= 0 then
if c > 0 then text[#text+1]=string.char(c) end
end
until data:LastRead() == 0
local web = table.concat(text)
local vers = string.sub(tostring(mc.mcCntlGetVersion(inst)),-4)
if string.find (web, vers)then
wx.wxMessageBox('Mach4 is upto date');
else
wx.wxMessageBox('Theres a different version of Mach4 to Download')
end
DazTheGas