 |
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
necrocorey Newbie cheater
Reputation: 0
Joined: 17 Apr 2016 Posts: 21
|
Posted: Sun Feb 07, 2021 9:14 am Post subject: How to copy multiple addresses at once to a .txt |
|
|
Hi I'm trying to copy a ton of addresses I found that into a .txt file.
I was told to ask here in the lua section.
Basically I found a boat load of things I want to copy but the only way I see how is by manually typing each address which would obviously be no fun.
Just being able to grab the addresses would be enough, but preferably if there were some method to retain their name too would be even better?
I'd really appreciate any help or suggestions for this.
Oh, I was going to post a screenshot example but looks I'm not allowed haha.
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25788 Location: The netherlands
|
Posted: Sun Feb 07, 2021 9:54 am Post subject: |
|
|
the attach system works for uploading images
anyhow, it's likely possible yes. But what is the source you want to copy the addresses from ? the found list? The normal address list? Some other window like the accessed addresses list?
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
 |
necrocorey Newbie cheater
Reputation: 0
Joined: 17 Apr 2016 Posts: 21
|
Posted: Sun Feb 07, 2021 9:59 am Post subject: |
|
|
Ah sorry I didn't realize I could attach if a URL wasn't allowed lol.
Anyway it's the addresses I have found and added to my CT. Here is an image to give you a better idea of what I'd like to copy.
The values don't really need to be copied because they only load at certain times during the game. Just the addresses is enough.
EDIT: That is to say, I just wanted to make it easy as I could on yall lol. Whatever works I can touch up afterwards. Just trying not to be too much of a pain.
Description: |
|
Filesize: |
38.31 KB |
Viewed: |
2798 Time(s) |

|
|
|
Back to top |
|
 |
AylinCE Grandmaster Cheater Supreme
Reputation: 37
Joined: 16 Feb 2017 Posts: 1516
|
Posted: Mon Feb 08, 2021 2:23 pm Post subject: |
|
|
There are 2 examples here.
https://forum.cheatengine.org/viewtopic.php?p=5760881#5760881
Alternatively, copy the code below, save it to a ".lua" extension (paste the code into the txt file, get the "all files option for save as and write" .lua "at the end of the file name save) file and drop it into the CE" autorun "folder.
What can it do;
1) Saves all the code in the address list to the specified folder (.txt). (Save)
2) It uploads the file name you wrote from the recording folder to the second box. (Load)
3) 2 functions active for the second box;
a) Download from the list to the address list individually (double click on the line).
b) Download the entire list to the address list (Add Address List)
4) Automatically back up the address list at regular intervals.
(Just give a name and activate it; Auto Save)
Edit as you wish.
Code: | function StartLogger()
if f then f.destroy() f = nil end
f = createForm()
f.Position=poDesktopCenter f.Width=525 f.Height=275
f.caption="Address List Recorder"
local m1=createMemo(f)
m1.Height=180 m1.Left=10 m1.Top=50 m1.Width=240
m1.WordWrap=false m1.ScrollBars="ssAutoBoth"
local m2=createMemo(f)
m2.Height=180 m2.Left=275 m2.Top=50 m2.Width=240
m2.WordWrap=false m2.ScrollBars="ssAutoBoth"
local b1=createButton(f)
b1.Left=10 b1.Top=12 b1.caption="Save"
local b2=createButton(f)
b2.Left=439 b2.Top=12 b2.caption="Load"
local b3=createButton(f)
b3.Left=395 b3.Top=240 b3.caption="Add Address List" b3.Width=120
local b4=createButton(f)
b4.Left=10 b4.Top=240 b4.caption="Auto Save - false" b4.Width=120
local b5=createButton(f)
b5.Left=202 b5.Top=240 b5.caption="Open Save Folder" b5.Width=121
local e1=createEdit(f)
e1.Left=95 e1.Top=13 e1.Width=155 e1.ShowHint=true e1.TextHint="Save File Name?"
local e2=createEdit(f)
e2.Left=275 e2.Top=13 e2.Width=155 e2.ShowHint=true e2.TextHint="Load File Name?"
--############################################################################--
local sf = getCheatEngineDir().."\\autorun\\"
if sf then
os.execute([[mkdir "]]..sf..[[\MyHackList"]])
end
pth = (sf.."MyHackList\\") --or pth=[[C:\Users\username\Desktop\MyHackList\]]
b5.OnClick=function()
shellExecute(pth)
end
function ListSave()
--local index = 1
local text=pth..e1.Text..".txt"
if text then
local settingsFile = io.open(text, "w")
if (settingsFile ~= nil) then
settingsFile:write(control_getCaption(m1))
settingsFile:close()
end
end
end
function ListLoad() --Memo2
local text2=pth..e2.Text..".txt"
if text2 then
local settingsFile = io.open(text2, "r")
if (settingsFile ~= nil) then
m2.Lines.Text = settingsFile:read("*a"):gsub("\n\r", "")
settingsFile:close()
end
end
end
--openProcess("chrome.exe")
local values=""
if addrrt then addrrt.destroy() end
addrrt = createTimer(false) --or auto "true"
addrrt.Interval = 1500
function loadList()
sleep(100)
local al=GetAddressList()
for i=0, al.Count-1 do
values=(i.."___"..al[i].Description.."___"..al[i].Address.."___\n"):gsub(' ','_');
m1.Lines.Add(values)
end
sleep(300)
ListSave()
end
b3.OnClick=function()
if m2.Lines.Text=="" then
showMessage("The list does not exist, please create a list from the 'Load' button.")
else
local al = getAddressList()
sleep(100)
for i=0, m2.Lines.count-1 do
local almr = al.createMemoryRecord()
des, addrr=string.match(m2.Lines[i],"___(.-)___(.-)___")
almr.Description=des
almr.Address=addrr
end
end
end
m2.OnDblClick=function(sender, button, x, y)
local al = getAddressList()
local caption=(m2.SelText):gsub(' ','_');
counts=string.match(caption,"(.-)___")
counts=tonumber(counts)
caption=m2.Lines[counts]
sleep(100)
if caption==nil then
showMessage("Please select the line number at the beginning of the line.")
else
local almr = al.createMemoryRecord()
des, addrr=string.match(caption,"___(.-)___(.-)___")
almr.Description=des
almr.Address=addrr
end
end
b1.OnClick=function() if e1.Text=="" then
showMessage("Please enter a valid list name!")
else loadList() end end
b2.OnClick=function() if e2.Text=="" then
showMessage("Please enter a valid list name!")
else ListLoad() end end
b4.OnClick=function() if e1.Text=="" then
showMessage("Please enter a valid list name!")
else if addrrt.Enabled==false then
addrrt.Enabled=true
b4.caption="Auto Save - true"
else
addrrt.Enabled=false
b4.caption="Auto Save - false"
end
end
end
addrrt.OnTimer=ListSave
end
local mf=getMainForm()
mainmenuitem=menu_getItems(mainmenu)
topmenuitem=createMenuItem(mainmenu)
menuItem_setCaption(topmenuitem,"Log/Playback")
menuItem_add(mainmenuitem, topmenuitem)
loggermenuitem=createMenuItem(mainmenu)
menuItem_setCaption(loggermenuitem,"Start address recorder")
menuItem_setShortcut(loggermenuitem,"Ctrl+R")
menuItem_onClick(loggermenuitem, StartLogger)
menuItem_add(topmenuitem, loggermenuitem)
|
_________________
|
|
Back to top |
|
 |
necrocorey Newbie cheater
Reputation: 0
Joined: 17 Apr 2016 Posts: 21
|
Posted: Wed Feb 10, 2021 1:56 pm Post subject: |
|
|
Hey thanks a ton. I'll see what I can do with what you posted. I found a clunky method of opening the CT in VScode so hopefully this works a lot nicer hahaha.
|
|
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
|
|