|
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
JBot How do I cheat? Reputation: 0
Joined: 15 Oct 2013 Posts: 2
|
Posted: Tue Oct 15, 2013 5:56 pm Post subject: Save address at the end of Pointers[EDIT:Bounty added] |
|
|
Hi, and thanks for taking the time to read this.
I want to save the addresses at the end of a pointer pointing to values(but not the values themselves), either to clipboard, or preferably file.
I found this script by Dark Byte that almost does it.
/viewtopic.php?p=5367562&sid=cfa0dcf4a29149712273064c56e8aa7b
It works wonderfully, but I dont want the base+offsets. I want the final computed address that points to the value at the end. I am a total noob with cheat engine, and would appreciate the help. If anyone could modify the code I linked by Dark Byte, or link me something I have missed that solves this issue, again, I would be grateful.
[EDIT]
Since I need this quite badly, I am offering a bounty for this. 10$ over paypal to the first to offer a working solution. 15$ if it writes to a file in the user's MyDocument folder. I can't imagine it is that difficult a problem, but it is currently beyond me.
Thanks again.
|
|
Back to top |
|
|
JBot How do I cheat? Reputation: 0
Joined: 15 Oct 2013 Posts: 2
|
Posted: Wed Oct 16, 2013 3:38 pm Post subject: |
|
|
I sent Dark Byte a pm, and he responded with
"Use getAddress(string) to convert it to an address".
I tried to modify the code on my own and came up with this below.
Code: |
function copySelectedAddressesFromAddresslistToClipboard()
result=''
sr=addresslist_getSelectedRecords(getAddressList())
for i=1, #sr do
local mr=sr[i]
local addressstring=''
address, fulladdress=memoryrecord_getAddress(mr)
if fulladdress~=nil then
--first build up the [ characters
for j=1,#fulladdress-1 do
addressstring=addressstring..'['
end
addressstring=getAddress(fulladdress[j])
else
addressstring=getAddress(fulladdress[j])
end
result=result..addressstring.."\n\r\n\r"
end
if #result>0 then
writeToClipboard(result)
end
end
mf=getMainForm()
pm=component_findComponentByName(mf,"PopupMenu2") --I should have made PopupMenu of addresslist a published property...
pmi=menu_getItems(pm)
miCopySelection=createMenuItem(pm)
menuItem_setCaption(miCopySelection, "Copy selected addresses to clipboard")
menuItem_setShortcut(miCopySelection, "Ctrl+Alt+C")
menuItem_onClick(miCopySelection, copySelectedAddressesFromAddresslistToClipboard)
menuItem_add(pmi, miCopySelection)
oldPopupmenu2_onPopup=getMethodProperty(pm,"OnPopup")
function newPopupmenu2_onPopup(sender)
sr=addresslist_getSelectedRecords(getAddressList())
if #sr==0 then
setProperty(miCopySelection, "Visible", "false")
else
setProperty(miCopySelection, "Visible", "true")
end
oldPopupmenu2_onPopup(sender)
end
setMethodProperty(pm,"OnPopup", newPopupmenu2_onPopup) |
It gives me this error "Error:Failure determining what means".
I know java, and not lua. Anyone know where it goes wrong?
|
|
Back to top |
|
|
morthloveshible How do I cheat? Reputation: 0
Joined: 17 Oct 2013 Posts: 1
|
Posted: Thu Oct 17, 2013 1:45 am Post subject: |
|
|
i second this, this would be very useful for me as well please!
thanks in advance
MorthLovesHible
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|