Jump to content

Archived

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

LionLee

how to restore the results

Recommended Posts

I write a script, and I want add a restore the edited results functionality, Screenshot_2018-07-29-13-56-03-177_bin_mt_plus.thumb.png.5d1caa82034fab0bcd522daddbe3184e.png

but the class list didn't describe.Screenshot_2018-07-29-13-48-17-880_com.tencent_mtt.thumb.png.3edf92b734edefb0e5c0225e5fa6c56e.png

Share this post


Link to post
Share on other sites

Save values in a table variable. Restore values later via setValues.

Share this post


Link to post
Share on other sites
50 minutes ago, Enyby said:

Save values in a table variable. Restore values later via setValues.

Thanks for replying, it's my first time to write a script, I find a script example online and write in it's way, the methods you say is esoteric for me(Maybe it's because the language is different and the translation is different), I write a simple code underline, could you help me write the restore methods? Then I can rewriting my codes in your way, thanks again. 

 

one piece of code:

 

function Example()

 

gg.processPause ()

 

gg.searchNumber("100;200;300::5", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)

 

gg.getResults(100)

 

gg.editAll("1;2;3", gg.TYPE_FLOAT)

 

gg.toast("ChangeSuccess")

 

gg.processResume()

 

end

Share this post


Link to post
Share on other sites

×
×
  • Create New...