script to set wifi and dlay

  • lookitsan00b
    17th Aug 2011 Member 0 Permalink
    This handy script will set the channels for wifi, ptri, ptro, and dlay with a cute little prompt.

    KNOWN ISSUES: does not work with zoom, due to inability to read zoom settings within scripts.

    save this as a .lua file with notepad, textpad, etc. (NOT WORD OR WORDPAD)
    type "dofile('script.lua')" (or whatever you named it) to install, or simply save as/append to 'autorun.lua'

    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)
  • duck5200
    17th Aug 2011 Member 0 Permalink
    Using TPT v55.9
    doesn't work but i like the prompt
    Channels don't change
  • vanquish349
    17th Aug 2011 Member 0 Permalink
    yeah, he needs to upload to better site. you will get errors with aligning wrong cause tpts website hasnt got tab support
  • lookitsan00b
    17th Aug 2011 Member 0 Permalink
    @duck5200 so it pulls up the prompt but doesn't do anything when you type in a number and press ok? the temperature of the wifi/ptri/ptro doesn't change? hmm...

    @vanquish349 yeah but i dont know how to upload elsewhere x.x