Jump to content

LUA scripting


Enyby
 Share

Recommended Posts

Hi, I've others doubt.

1.It's possible check true all items in multiChoice option?

2.It's possible that the user can choose, example; the quantity of money  to later to modify a value by that quantity  in question like prompt option works?

Link to comment
Share on other sites

  • Administrators

1. No. But you can add special item with this meaning. If user check it - act like he check all items. name this options as "check all" or similar.

2. I do not understand what you talking about.

You can use any data from previous prompt. For build another prompt, Or for search. As text or as number. All up to you.

Link to comment
Share on other sites

  • 3 weeks later...
local s = (8FFEh - value) ^ value) .. ';' .. value .. '::9'
gg.searchNumber (s, gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)

I'm trying to find values by this sample script but dont clearly understand how to send as input "next" value.

Example: I must find 2 dwords, 8FFE, 0x999

Lets name it A and B

8FFE calculated by formula y = (A xor B) + B, y = (0x8FFE xor 0x999) + 0x999 = 9000

So, before searching process I only know that decrypted value is 9000. Reversed formula y = (A - B) xor B. Xor values is unpredictable

How to do valid search with that criteria? Any hint would be great

Link to comment
Share on other sites

  • 1 month later...
54 minutes ago, BlackTrack_ID said:

gg.clearResults()

For delete all results, how about command save results?

Save result 

gg.addListItems()

Delete saved result

gg.removeListItems()

Save result by variable

T1= gg.getResults()

deleted saved result from a variable

T1= nil

Link to comment
Share on other sites

  • 4 weeks later...

@Enyby how to use this

if dialog canceled - 0, else: 1 for positive, 2 for negative, 3 for neutral buttons.

Examples:

gg.alert('Script ended')

-- Show alert with single 'ok' button

gg.alert('Script ended', 'Yes')

-- Show alert with single 'Yes' button

gg.alert('A or B?', 'A', 'B')

-- Show alert with two buttons

gg.alert('A or C?', 'A', nil, 'C')

-- Show alert with two buttons

gg.alert('A or B or C?', 'A', 'B', 'C')

-- Show alert with three buttons

i cant fully understand with negative positive and neutral

Link to comment
Share on other sites

  • Administrators

This is from Android. Android has a positive button, a negative button and a neutral one.
They are always located at certain places in the interface.
Try, test and see.
Pay attention to the name of the method parameters.

Link to comment
Share on other sites

3 minutes ago, Enyby said:

This is from Android. Android has a positive button, a negative button and a neutral one.
They are always located at certain places in the interface.
Try, test and see.
Pay attention to the name of the method parameters.

Sir HoW can i write it?

gg.alert('Granger',  'Go',   'Back')

where to put 1-Positive

                        2-negative

                       3-neutral?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • 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.