Pastebin
Paste #13250: GG LUA EXAMPLE
< previous paste - next paste>
Pasted by lua-demo
if gg.isVisible(true) then
gg.setVisible(false)
end
---- menu
::menu::
gg.clearResults()
gg.alert('LUA DEMO, tap OK')
choice = {'Search/Replace','Exit'}
mainmenu = gg.choice(choice,nil, '===>Menu<===')
----making menu
if mainmenu == 1 then goto modify end
if mainmenu == 2 then goto exit end
if mainmenu == nil then goto exit end
--- menu modify
::modify::
gg.clearResults()
--gg.setRanges(gg.REGION_ANONYMOUS)
input=gg.prompt({'input your value below'},
{[1]='0'},
{[1]='number'})
if input==nil then
gg.alert('you have cancelled the dialogue')
os.exit()
end
gg.searchNumber(input[1],gg.TYPE_DWORD)
gg.getResults(100)
gg.editAll('999999' , gg.TYPE_DWORD)
gg.toast('Tap GG and tap delete (revert and remove)')
gg.sleep(9000)
--gg.timeJump('20'), 20s
goto menu
--- menu exit
::exit::
gg.alert('Bye bye, 💥🤔💥🤔🔊🔥💥🔥🔊🔥🔊🔥💥🔥💥🔥')
print('Bye bye')
os.exit ()
New Paste
Go to most recent paste.