View previous topic :: View next topic |
Author |
Message |
Lynxz Gaming Expert Cheater Reputation: 4
Joined: 01 Jul 2017 Posts: 208 Location: help
|
Posted: Sun Apr 08, 2018 4:50 am Post subject: get AOB Address [ help ] |
|
|
how to make when button is pressed
then it will aobscan and then do
UDF1.CEMemo.Lines.Add(getaobaddress)
thanks
_________________
my english is bad
discord : rynx#9828 |
|
Back to top |
|
|
FreeER Grandmaster Cheater Supreme Reputation: 53
Joined: 09 Aug 2013 Posts: 1091
|
Posted: Sun Apr 08, 2018 8:05 am Post subject: |
|
|
Code: | FormName.ButtonName.OnClicked = function()
local res = AOBScan('...') --or AOBScan(0x..,...) -- (non-byte = wildcard)
if res then
for i=0,res.Count-1 do
UDF1.CEMemo.Lines.Add(res[i])
end
res.destroy()
end
end |
might be OnClick instead of OnClicked, can't remember off the top of my head
_________________
|
|
Back to top |
|
|
Corroder Grandmaster Cheater Supreme Reputation: 75
Joined: 10 Apr 2015 Posts: 1667
|
|
Back to top |
|
|
Lynxz Gaming Expert Cheater Reputation: 4
Joined: 01 Jul 2017 Posts: 208 Location: help
|
Posted: Tue Apr 10, 2018 7:11 am Post subject: |
|
|
Thxxxx Corroder and FreeEr
_________________
my english is bad
discord : rynx#9828 |
|
Back to top |
|
|
AylinCE Grandmaster Cheater Supreme Reputation: 32
Joined: 16 Feb 2017 Posts: 1253
|
Posted: Fri Aug 02, 2019 10:36 am Post subject: |
|
|
Corroder wrote: | Try this :
Code: | function getByteString(address, bytecount)
local bytes = readBytes(address, bytecount, true)
if bytes then
local result = ""
for i = 1, #bytes do
if #result > 0 then result = result .. " " end
result = result .. string.format("%02X", bytes[i]) end
return result end
end
function aobResult(aobStr)
res = AOBScan(aobStr)
j = 0
cnt = 1
if (res~=nil) then
print("Results found: "..res.Count)
while j < res.Count do
a = getByteString(res[j], 12)
--print("Address "..cnt.." = "..res[j].." --> AOB : "..a)
UDF1.CEMemo1.append("Address "..cnt.." = "..res[j].." --> AOB : "..a)
j=j+1
cnt = cnt+1
end
res.destroy()
res=nil
else
print("No results found")
end
end
function CEButton1Click(sender)
UDF1.CEMemo1.Clear()
UDF1.CEMemo1.ScrollBars='ssVertical'
aobResult("24 01 62 07") --- example, put your AOB here
end
UDF1.Show() |
|
I've been looking for this code for a week.
It works great, thank you.
+1
_________________
|
|
Back to top |
|
|
|