Zerras Posted January 1, 2021 Posted January 1, 2021 I try to make prompt like this d = gg.prompt({"Input HP ","Input Level"},{[1]="1~80;0~5;1~100;8007:20"},{[2]=""}) So how to make it to search number just input '8007' so I want it like this 1~80;0~5;1~100;d[1]:20 Thank u
MonkeySAN Posted January 1, 2021 Posted January 1, 2021 gg.searchNumber("1~80;0~5;1~100;"..d[1]..":20", <your type>)
Zerras Posted January 1, 2021 Author Posted January 1, 2021 Thank u very much it works,and anyway is there a way to keep value on prompt?e.g. I set value 8888;7261 and then when I cancel it keep the value 8888;7261 not 0?because it's kinda annoying when I need to input group search value
MonkeySAN Posted January 1, 2021 Posted January 1, 2021 d = gg.prompt({"Input Number :"},{"8888;7261"})
Zerras Posted January 2, 2021 Author Posted January 2, 2021 No that's not what I mean,I want to make GG prompt that always remember last input value
CmP Posted January 2, 2021 Posted January 2, 2021 16 minutes ago, Zerras said: I want to make GG prompt that always remember last input value Try to search the forum for existing solutions first. This one matches your description: Examples of Lua scripts (#6kko1w03)
Zerras Posted January 2, 2021 Author Posted January 2, 2021 No that's not what I want but thx for replying
CmP Posted January 2, 2021 Posted January 2, 2021 3 hours ago, Zerras said: No that's not what I want but thx for replying Then you need to better describe what you want. Try this: local savedInput = '' function myPrompt() local result = gg.prompt({'Input something'}, {savedInput}, {'text'}) if result ~= nil then savedInput = result[1] end end myPrompt() myPrompt()
Zerras Posted January 2, 2021 Author Posted January 2, 2021 Sorry for my bad english So here is my example script d = gg.prompt({"Input HP","Input Level"},{[1]=""},{[2]=""}) if d == nil then START() end gg.setRanges(gg.REGION_ANONYMOUS) gg.searchNumber("1~80;0~5;1~100;"..d[1]..":20", gg.TYPE_DWORD) So let's say D[1] value I input is 8888;1234 and then I cancel it and if I back into prompt menu it will be 0 right? What I want is d[1] remember the last input just like original GG while we minimize GG the value it still there,because d[1] value is sometimes variation it could be into group search depends on the game,the easy way to get the address is by prompt menu so user can input the value free,and I add Offset script after getresult(),if I cancel the menu it will be error because it operating the offset function even I add if d == nill then START() end
Question
Zerras
I try to make prompt like this
d = gg.prompt({"Input HP ","Input Level"},{[1]="1~80;0~5;1~100;8007:20"},{[2]=""})
So how to make it to search number just input '8007' so I want it like this
1~80;0~5;1~100;d[1]:20
Thank u
8 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.