欢迎图片

How to judge vbox is online with a address?

Last modified by Leo Wei on 2022/11/14 08:00

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

function demo.main()
local a
a=math.random()
print(a)
addr_setfloat("@HDW0",a)
end

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

here I make a random function,and output a random number in hdw0
if hdw0 keep changing,means vbox is online.
if hdw0 stop updating,means vbox is offline.