Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Let the shitstorm begin...
- var_mode = 0
- function update_vars()
- running = wm_tag("{ttvinfo}")
- var_s_running = tonumber(running)
- tvhost = wm_tag("{ttvhost}")
- var_s_ip = tostring(tvhost)
- tvport = wm_tag("{ttvport}")
- var_s_port = tostring(tvport)
- end
- function volume(a)
- if a == 0 then
- wm_action('m_task:WMTV_Mute')
- elseif a == 1 then
- wm_action('m_task:WMTV_VolDown')
- elseif a == 2 then
- wm_action('m_task:WMTV_VolUp')
- end
- end
- function input(b)
- if b == 0 then
- wm_action('m_task:WMTV_CEC')
- elseif b == 1 then
- wm_action('m_task:WMTV_HDMI1')
- elseif b == 2 then
- wm_action('m_task:WMTV_HDMI2')
- end
- end
- function keys(c)
- if c == 0 then
- wm_action('m_task:WMTV_KeyUp')
- elseif c == 1 then
- wm_action('m_task:WMTV_KeyDown')
- elseif c == 2 then
- wm_action('m_task:WMTV_KeyLeft')
- elseif c == 3 then
- wm_action('m_task:WMTV_KeyRight')
- elseif c == 4 then
- wm_action('m_task:WMTV_KeyOK')
- elseif c == 5 then
- wm_action('m_task:WMTV_KeyBack')
- elseif c == 6 then
- wm_action('m_task:WMTV_KeyExit')
- end
- end
- function power()
- wm_action('m_task:WMTV_Power')
- end
- function findtv()
- wm_action('m_task:AR_GetTVInfo')
- end
- function on_second(h, m)
- update_vars()
- end
- update_vars()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement