tpt.set_console(0)
function change_wifi(mbq, mb, mx, my)
if (mbq == 1) then do
type = tpt.get_property("type", mx, my)
if (type == 124 or type == 109 or type == 110) then do
local chan = tpt.input("Channel Setup", "Enter a channel -3 to 99.")
tpt.set_property("temp", chan * 100 + 323.15, mx, my)
end elseif (type == 79) then do
local dlay = tpt.input("Delay Setup", "Enter a delay 2 to 256")
tpt.set_property("temp", dlay + 273.15, mx, my)
end else do
tpt.log(mx..", "..my..", "..type)
return true
end end
end else return true end
end
tpt.register_mouseclick(change_wifi)