Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


(Question) Can i connect Notepad to CE to record values?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
drewfist98
Newbie cheater
Reputation: 0

Joined: 24 Mar 2015
Posts: 11

PostPosted: Sun Mar 29, 2015 2:25 am    Post subject: (Question) Can i connect Notepad to CE to record values? Reply with quote

I am wandering if there is a way to get cheat engine to record Address' Values and then paste them into a Notepad document for later viewing by me. (NOTE: The address' values ill be wanting to view will change alot of times.. about 10 times per second, Also will mainly be a Array of bytes)

Example: An address has a value of 10 .. Cheat engine will copy/paste it to notepad .. Whenever the value changes either by positive or negative, Cheat engine will copy/paste it to notepad and will continue to do it until i "Tell" it to otherwise.

Is this possible?
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sun Mar 29, 2015 8:10 am    Post subject: Reply with quote

Sorry I don't have any code, but I believe you can use LUA for this.
Set a breakpoint on an address and create an LUA function to handle that.
Should be able to write to a text file from within the script.
Back to top
View user's profile Send private message
drewfist98
Newbie cheater
Reputation: 0

Joined: 24 Mar 2015
Posts: 11

PostPosted: Mon Mar 30, 2015 12:18 am    Post subject: Reply with quote

Zanzer wrote:
Sorry I don't have any code, but I believe you can use LUA for this.
Set a breakpoint on an address and create an LUA function to handle that.
Should be able to write to a text file from within the script.


Hm, Any other way to do this? I cannot attach the debugger to the program im playing
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25288
Location: The netherlands

PostPosted: Mon Mar 30, 2015 2:30 am    Post subject: Reply with quote

then you can use polling using a timer and readInteger/readFloat/readDouble and write that to a file. It won't be 100% accurate though
_________________
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
View user's profile Send private message MSN Messenger
drewfist98
Newbie cheater
Reputation: 0

Joined: 24 Mar 2015
Posts: 11

PostPosted: Mon Mar 30, 2015 1:12 pm    Post subject: Reply with quote

Dark Byte wrote:
then you can use polling using a timer and readInteger/readFloat/readDouble and write that to a file. It won't be 100% accurate though


Sorry dark byte, can you give me any further in-depth instructions on your method?
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Mon Mar 30, 2015 7:28 pm    Post subject: Reply with quote

Code:
myVal = 0
timer = createTimer(nil)
timer.Interval = 100
timer.OnTimer = function()
  val = readInteger("address")
  if val ~= myVal then
    -- write to file
    myVal = val
  end
end
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites