Jump to content
  • 0

How to undo value use script


ZTzTopiaa

Question

2 answers to this question

Recommended Posts

  • Administrators

Save old value to variable, before change. After that, when you need undo - restore it, from variable. 

[added 1 minute later]

You can try use undo button during script record and see how this implemented in recorded script. Exactly I described above.

Link to comment
Share on other sites

Quote
Quote
Quote
Quote

 

 

 

 

goto axz



::axz::

goblok = ({'Haxz','Undo'})

if goblok == 1 then goto hax end

if goblok == 2 then goto undo end

::undo::

if revert ~= nil then gg.setValues(revert) end

goto axz



::hax::

gg.searchNumber('100',gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)

revert = gg.getResults(600)

gg.editAll('1',gg.TYPE_DWORD)
end

goto axz

This is i mean but thx you @Enyby

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.