Jump to content

setranges not working


Recommended Posts

hi, I'm back with a question.

I'm working on some script, but it s not function correctly see here:

function hushk()
gg.setRanges(gg.REGION_CODE_APP)
gg.searchNumber('0.0', gg.TYPE_FLOAT)
gg.searchNumber(900, gg.TYPE_FLOAT)
gg.getResults(4)
gg.editAll(1, gg.TYPE_FLOAT)
gg.clearResults()
end


the problem is that whenever I run another hax of my script, the script only search in region code app and wont search for the other regions that's were already unabled on the GG..(the green regions), now I tried to return the regions code app with using "getRangers(gg.REGION_CODE_APP)"

but everything is still the same. I don't knw realy how this happend...it realy has to do with this ranges because whenever I interrupt script and restart it and choose another hack that doesn't have thi specific region code app, the hack wills be found till I chooce a hack that needs another region...I would appreciate the help because I do not find logical solution and I have to finish this scripts, its gotta be guuddd and smuuth.


thanks for reply.
Link to comment
Share on other sites

  • Administrators

You must restore old regions in the end of this function.

For example getRanges to variable at start and restore at the end.

local old = gg.getRanges();
gg.setRanges(bit32.bxor(gg.REGION_C_HEAP, gg.REGION_C_ALLOC, gg.REGION_ANONYMOUS))

-- do some actions

gg.setRanges(old)

 

Link to comment
Share on other sites

alright I understand, but I never realy understood why there has to be a             "bit32.bxor" 

is that always niccesairy, I mean like for what do whe use that? when I search in on internet it says its used for bite manipulation, but I don`t realy understand the diffrece between:

bit32.band
bit32.bor
bit32.bxo
bit32.bnot

does it matter which one I choice, do I even realy need to use the bit32.bxor?

Link to comment
Share on other sites

thanks a lot for help, I understand and got it here:

local old = gg.getRanges();
gg.setRanges(gg.REGION_CODE_APP)
gg.searchNumber('1.294621e-38F;0.10000000149F',  gg.TYPE_FLOAT)
r = gg.getResults(2)
r[2].value = '-1.887'
gg.setValues(r)
gg.setRanges(old)
gg.toast('YT = Dragon Star')
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.