Search the Community
Showing results for tags 'prompt'.
-
Hey @Enyby, could you please update these 2 functions: gg.prompt and gg.multiChoice? They are great for getting input from user, but it lacks a very important feature that still missing. For example, when I am still entering the prompt partially, sometimes I close GG to have a better visual on what the full input's gonna be. But here's the problem, as soon as I close GG, those partial inputs typed are gone (pressing non-OK). When I next open GG, I don't have programmatically ways to store previous input so that it can be used later on. Things also go the same for gg.multiChoice, but instead of prompts it is for menu list checkmarks. Do you think you can handle this in the near future? This is the best feature that I've been wanting to have in my scripts.
- 30 replies
-
1
-
- prompt
- multichoice
-
(and 1 more)
Tagged with:
-
[ @kiynox ] could this script be any better? function menus() choices = gg.choice({'Prepare spam','Search','Exit'}) if choices == nil then os.exit() else if choices == 3 then os.exit() else prepares(choices) end end end function prepares(choices) if choices == 1 then gg.clearResults() gg.searchNumber("9;74;8.0", gg.TYPE_FLOAT) gg.refineNumber('74', gg.TYPE_FLOAT) chatspam = gg.getResults(gg.getResultsCount()) gg.addListItems(chatspam) elseif choices == 2 then gg.loadResults(chatspam) gg.getResults(1000) chatspam = gg.prompt({"Enter which letter you want to spam?(0 = A, 1 = B, 2 = C, 3 = D, 4 = E, 5 = F, 6 = G, 7 = H, 8 = I, 9 = J, 10 = K, 11 = L, 12 = M, 13 = N, 14 = O, 15 = P, 16 = Q, 17 = R, 18 = S, 19 = T, 20 = U, 21 = V, 22 = W, 23 = X, 24 = Y, 25 = Z)"}, {[1] ="0"}, {["1"] ="number"}) if chatspam == nil then gg.alert("you haven't searched anything so the script will restart!") return end gg.editAll(chatspam[1] ,gg.TYPE_FLOAT) chatspam = gg.getResults(gg.getResultsCount()) end end knxs = false while true do if gg.isVisible(true) then knxs = true else knxs = false end if knxs == true then menus() else gg.setVisible(false) end end