Platonic Posted May 12, 2018 Share Posted May 12, 2018 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 More sharing options...
Administrators Enyby Posted May 12, 2018 Administrators Share Posted May 12, 2018 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 More sharing options...
Platonic Posted May 13, 2018 Author Share Posted May 13, 2018 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.bandbit32.borbit32.bxobit32.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 More sharing options...
Platonic Posted May 13, 2018 Author Share Posted May 13, 2018 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 More sharing options...
Administrators Enyby Posted May 13, 2018 Administrators Share Posted May 13, 2018 3 hours ago, XxhentaixX said: does it matter which one I choice, do I even realy need to use the bit32.bxor? Yes. Read about bitwise operation on Google or wiki. You need XOR or OR. In this case it is same. Also you can use "|" or "~" for this: https://stackoverflow.com/a/27982949/1504248 Link to comment Share on other sites More sharing options...
Platonic Posted May 13, 2018 Author Share Posted May 13, 2018 8 hours ago, Enyby said: alright, thank you. I'm gonne look. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.