View previous topic :: View next topic |
Author |
Message |
Zanzer I post too much Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Mon May 09, 2016 8:39 pm Post subject: |
|
|
Code: | local list = getAddressList()
local offset = 0x00F00000
for i=1,10 do
local rec = list.getMemoryRecordByDescription("name "..i)
if rec == nil then
break
end
local addr = string.format("game.exe+%X", offset)
rec.Address = addr
offset = offset + 0x10
end |
|
|
Back to top |
|
|
Dr.Disrespect Grandmaster Cheater Reputation: 3
Joined: 17 Feb 2016 Posts: 526
|
Posted: Tue May 10, 2016 11:13 am Post subject: |
|
|
Zanzer wrote: | Code: | local list = getAddressList()
local offset = 0x00F00000
for i=1,10 do
local rec = list.getMemoryRecordByDescription("name "..i)
if rec == nil then
break
end
local addr = string.format("game.exe+%X", offset)
rec.Address = addr
offset = offset + 0x10
end |
|
Thanks, this is very helpful.
|
|
Back to top |
|
|
Zanzer I post too much Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Tue May 10, 2016 8:59 pm Post subject: |
|
|
Code: | local list = getAddressList()
local combo = UDF1.CEComboBox1
local items = combo.Items
local index = combo.ItemIndex
local compare = nil
if index >= 0 then
compare = items[index]
end
combo.clear()
for i = 1, 3 do
local record = list.getMemoryRecordByDescription("Name "..i)
local value = record.Value
if value ~= nil and #value > 0 then
items.add(value)
if value == compare then
combo.ItemIndex = items.Count - 1
end
end
end |
|
|
Back to top |
|
|
Zanzer I post too much Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Wed May 11, 2016 7:13 pm Post subject: |
|
|
When you build the items list, you can create a records list to go with it.
Then you can get the record with: combo.record[combo.ItemIndex]
Code: | local list = getAddressList()
local combo = UDF1.CEComboBox1
local items = combo.Items
local index = combo.ItemIndex
local compare = nil
if index >= 0 then
compare = items[index]
end
combo.clear()
combo.record = {} -- declare an empty array
for i = 1, 3 do
local record = list.getMemoryRecordByDescription("Name "..i)
local value = record.Value
if value ~= nil and #value > 0 then
local index = items.Count
items.add(value)
items.record[index] = record -- populate your array with each record
if value == compare then
combo.ItemIndex = index
end
end
end |
|
|
Back to top |
|
|
Zanzer I post too much Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Fri May 13, 2016 6:05 pm Post subject: |
|
|
Code: | autoAssemble(AssemblyLock..[[
nop
]]) |
|
|
Back to top |
|
|
|