Jump to content
  • 0

Help GG.prompt


Zerras

Question

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

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

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

Link to comment
Share on other sites

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()
Link to comment
Share on other sites

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

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.