rendered paste body*script bang !rbHighlight ;group,option ;;luaConvert external *script goto %{args:1} *script label sd *script gotoif ["%{args:2}" = "shutdown"] shutdown *script gotoif ["%{args:2}" = "hibernate"] hibernate *script gotoif ["%{args:2}" = "suspend"] suspend *script goto sd2 *script label shutdown *script gotoif ["%#ShutdownAllowed%#" = "false"] showError sd2 *script label hibernate *script gotoif ["%#HibernateAllowed%#" = "false"] showError sd2 *script label suspend *script gotoif ["%#SuspendAllowed%#" = "false"] showError sd2 *script label sd2 *script exec !setVar shutDownMethod %{args:2} *script goto setRadio--------------------------------------------------------------------------------function rbHighlight(group, option) if group == 'sd' then if (vars[option.."Allowed"]) then vars.shutDownMethod = option else alert("Your system doesnt support "..option.."!") endend