Search the Community
Showing results for tags 'MultiChoice'.
-
Version 1.0.0
893 downloads
--MULTI CHOICE BY SHELL_SCRIPT HOME = 1 function HOME() multi = gg.multiChoice({ "CHOICE 1", "CHOICE 2", "CHOICE 3", "CHOICE 4", },nil,'MULTI CHOICE BY SHELL_SCRIPT') if multi == nil then else if multi[1] == true then ch1() end if multi[2] == true then ch2() end if multi[3] == true then ch3() end if multi[4] == true then ch4() end end HOMEDM = -1 end function ch1() gg.alert('CHOICE 1') end function ch2() gg.alert('CHOICE 2') end function ch3() gg.alert('CHOICE 3') end function ch4() gg.alert('CHOICE 4') end while true do if gg.isVisible(false) then HOMEDM = 1 gg.setVisible(false) end if HOMEDM == 1 then HOME() end end -
tar = gg.getResults(gg.getResultCount()) val = {} for i, v in ipairs(tar) do table.insert(val,v.value) end local menu = gg.multiChoice(val,nil,"") if not menu then os.exit() end if menu[val] == true then gg.refineNumber(menu[val],4) end when I try it doesn't respond to refine please help
-
View File Multi Choice in lua script --MULTI CHOICE BY SHELL_SCRIPT HOME = 1 function HOME() multi = gg.multiChoice({ "CHOICE 1", "CHOICE 2", "CHOICE 3", "CHOICE 4", },nil,'MULTI CHOICE BY SHELL_SCRIPT') if multi == nil then else if multi[1] == true then ch1() end if multi[2] == true then ch2() end if multi[3] == true then ch3() end if multi[4] == true then ch4() end end HOMEDM = -1 end function ch1() gg.alert('CHOICE 1') end function ch2() gg.alert('CHOICE 2') end function ch3() gg.alert('CHOICE 3') end function ch4() gg.alert('CHOICE 4') end while true do if gg.isVisible(false) then HOMEDM = 1 gg.setVisible(false) end if HOMEDM == 1 then HOME() end end Submitter SHELL_SCRIPT Submitted 05/26/2020 Category Templates