Jump to content
  • 0

Tell me use command gg.prompt edit group val


anhdrg

Question

Posted
local val = gg.prompt({[1] = 'input value 1', [2] = 'input value 2' },

{[1] = '100'}, {[2] = '200'})

if

val[1] == nil

then print('cancel, please input value')

end

gg.searchNumber('50;51', gg.TYPE_DWORD,false,gg.SIGN_EQUAL, 0, -1)

gg.getResults(100)

gg.editAll('val[1];val[2]',gg.TYPE_DWORD)

 I input val[1]=100 and val[2]=200

when editall value is val[1] is 1 and val[2] is 2

Thank you

 

2 answers to this question

Recommended Posts

Posted
local val = gg.prompt({[1] = 'input value 1', [2] = 'input value 2' },

{[1] = '100'}, {[2] = '200'})

if

val[1] == nil

then print('cancel, please input value')

end

gg.searchNumber('50;51', gg.TYPE_DWORD,false,gg.SIGN_EQUAL, 0, -1)

gg.getResults(100)

gg.editAll(val[1]..';'..val[2],gg.TYPE_DWORD)

 

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.