Hello Guest it is December 26, 2024, 07:24:50 AM

Author Topic: Screen Timer Script  (Read 4357 times)

0 Members and 1 Guest are viewing this topic.

Offline DazTheGas

*
  •  778 778
  • DazTheGas
Screen Timer Script
« on: September 20, 2018, 06:35:38 PM »
Ever wondered how the Screen Timer Script works

https://youtu.be/wNPMqjkcJ_8


Code used in video

Code: [Select]
if timer == 0 then
timer0()
elseif timer == 1 then
timer1()
elseif timer == 2 then
timer2()
elseif timer == 3 then
timer3()
elseif timer == 4 then
timer4()
elseif timer == 5 then
timer5()
elseif timer == 6 then
timer6()
elseif timer == 7 then
timer7()
elseif timer == 8 then
timer8()
elseif timer == 9 then
timer9()
else
mc.mcCntlSetLastError(inst, 'Timer Number Out Of Range')
end

function timer0()
local col = scr.GetProperty('btnMachCoord','Bg Color')
if col == '' then
scr.SetProperty('btnMachCoord','Bg Color','#00FF00')
else
scr.SetProperty('btnMachCoord','Bg Color','')
end
end

function timer1()
wx.wxMessageBox('I came from a Timer 1')
end

Enjoy

DazTheGas
New For 2022 - Instagram: dazthegas