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 


How to make Copy Paste Script
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Meiyoh
Master Cheater
Reputation: 1

Joined: 14 Mar 2015
Posts: 402

PostPosted: Tue May 17, 2016 5:58 pm    Post subject: How to make Copy Paste Script Reply with quote

Hello.
I want to make a copy paste script that copies NON STOP without stopping values from a chosen
address to another one.
How to do so.
Any example

The address is DMA so it changes. Anyone experienced to make an example.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4691

PostPosted: Tue May 17, 2016 6:31 pm    Post subject: Reply with quote

Code:
alloc(newmem,2048)
createthread(newmem)
newmem:
  mov eax,[address1]
  mov [address2],eax
  push 10
  call kernel32.Sleep
  jmp newmem

Besides that, you're going to need to give more information. Do you have a static pointer to these addresses? Can you find an instruction that only accesses these addresses?

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Meiyoh
Master Cheater
Reputation: 1

Joined: 14 Mar 2015
Posts: 402

PostPosted: Tue May 17, 2016 6:46 pm    Post subject: Reply with quote

ParkourPenguin wrote:
Code:
alloc(newmem,2048)
createthread(newmem)
newmem:
  mov eax,[address1]
  mov [address2],eax
  push 10
  call kernel32.Sleep
  jmp newmem

Besides that, you're going to need to give more information. Do you have a static pointer to these addresses? Can you find an instruction that only accesses these addresses?


My address is listed in my table as a structure address

say the code address requires found address to be put
and this found address has it's sub addresses as +??? from the found one.
So I need a script to write from one of those sub addresses example found address +4 to example camera+4

I need this to work non stop. Not just copy once and stop but continue to copy.

THANKS Smile

i HAVE 3 addresses I need to copy from to another 3 addresses
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4691

PostPosted: Tue May 17, 2016 7:59 pm    Post subject: Reply with quote

So, you already have a script that finds the base of the structure(s) those addresses are in? That's good; just use the registered symbols from those scripts, then.

Also, if you'd like to enable/disable the script, this is a good way I've found to do it:
Code:
[ENABLE]
alloc(newmem,2048)
label(copyValsShouldExit)
registersymbol(copyValsShouldExit)

createthread(newmem)

newmem:
  mov eax,[camera+4]
  mov [camera+12],eax
  push 10
  call kernel32.Sleep
  cmp [copyValsShouldExit],0
  je newmem
// free memory, kill thread
  pop eax
  push 8000
  push 0
  push newmem
  push eax
  jmp kernel32.VirtualFree
copyValsShouldExit:
  dd 0

[DISABLE]
copyValsShouldExit:
  dd 1

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Meiyoh
Master Cheater
Reputation: 1

Joined: 14 Mar 2015
Posts: 402

PostPosted: Wed May 18, 2016 1:43 am    Post subject: Reply with quote

Meiyoh wrote:
ParkourPenguin wrote:
Code:
alloc(newmem,2048)
createthread(newmem)
newmem:
  mov eax,[address1]
  mov [address2],eax
  push 10
  call kernel32.Sleep
  jmp newmem

Besides that, you're going to need to give more information. Do you have a static pointer to these addresses? Can you find an instruction that only accesses these addresses?


My address is listed in my table as a structure address

say the code address requires found address to be put
and this found address has it's sub addresses as +??? from the found one.
So I need a script to write from one of those sub addresses example found address +4 to example camera+4

I need this to work non stop. Not just copy once and stop but continue to copy.

THANKS Smile

i HAVE 3 addresses I need to copy from to another 3 addresses


hello for some reason I can't enable this script.

can you write a cheat table script for Cheat LUA?
Back to top
View user's profile Send private message
akumakuja28
Master Cheater
Reputation: 16

Joined: 28 Jun 2015
Posts: 432

PostPosted: Wed May 18, 2016 9:03 am    Post subject: Reply with quote

Meiyoh wrote:
Meiyoh wrote:
ParkourPenguin wrote:
Code:
alloc(newmem,2048)
createthread(newmem)
newmem:
  mov eax,[address1]
  mov [address2],eax
  push 10
  call kernel32.Sleep
  jmp newmem

Besides that, you're going to need to give more information. Do you have a static pointer to these addresses? Can you find an instruction that only accesses these addresses?


My address is listed in my table as a structure address

say the code address requires found address to be put
and this found address has it's sub addresses as +??? from the found one.
So I need a script to write from one of those sub addresses example found address +4 to example camera+4

I need this to work non stop. Not just copy once and stop but continue to copy.

THANKS Smile

i HAVE 3 addresses I need to copy from to another 3 addresses


hello for some reason I can't enable this script.

can you write a cheat table script for Cheat LUA?



Lol you cant just expect that to work. You need an injection spot or at least pointer data for both the value you want to copy and the place you want to copy it to.

_________________
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4691

PostPosted: Wed May 18, 2016 9:23 am    Post subject: Reply with quote

I can enable/disable the second script I posted just fine, assuming the "camera" symbol is valid. If you don't know what to do, that's not my problem. I'll answer some questions you have, but I won't write this entire script for you.

Writing this in Lua won't help out at all since you'll still run into the same exact problem of needing a reference to those addresses. Regardless, here's a Lua version of the above script:
Code:
t = createTimer()
t.Interval = 10
t.OnTimer = function(sender)
  local v = readBytes("camera+4", 4, true)
  writeBytes("camera+12", v)
end

Try checking out this topic (the "injection copies" section).

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Wed May 18, 2016 10:59 am    Post subject: Reply with quote

Also, for a build in copy value from address using memory record only

name the source address bla and then freeze the destination address and then change the value to (bla)
that will cause ce to constantly write the value of bla to your destination address

_________________
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
akumakuja28
Master Cheater
Reputation: 16

Joined: 28 Jun 2015
Posts: 432

PostPosted: Wed May 18, 2016 1:02 pm    Post subject: Reply with quote

Dark Byte wrote:
Also, for a build in copy value from address using memory record only

name the source address bla and then freeze the destination address and then change the value to (bla)
that will cause ce to constantly write the value of bla to your destination address

'



Can you elaborate on that. Just tried that didnt work like expected.

_________________
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4691

PostPosted: Wed May 18, 2016 1:07 pm    Post subject: Reply with quote

Neat feature DB, didn't know about that. Are the little things like this documented anywhere?

akumakuja28:
  1. Add 2 different addresses to the address list
  2. Name the source address Bla
  3. Freeze the destination address
  4. Double click on the value field of the destination address
  5. Enter (Bla) for the value and hit OK
  6. The destination address's value will now always change to the source address's value

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Meiyoh
Master Cheater
Reputation: 1

Joined: 14 Mar 2015
Posts: 402

PostPosted: Wed May 18, 2016 2:00 pm    Post subject: Reply with quote

ParkourPenguin wrote:
Neat feature DB, didn't know about that. Are the little things like this documented anywhere?

akumakuja28:
  1. Add 2 different addresses to the address list
  2. Name the source address Bla
  3. Freeze the destination address
  4. Double click on the value field of the destination address
  5. Enter (Bla) for the value and hit OK
  6. The destination address's value will now always change to the source address's value



Does this support only 2 addresses?
Back to top
View user's profile Send private message
akumakuja28
Master Cheater
Reputation: 16

Joined: 28 Jun 2015
Posts: 432

PostPosted: Wed May 18, 2016 2:32 pm    Post subject: Reply with quote

ParkourPenguin wrote:
Neat feature DB, didn't know about that. Are the little things like this documented anywhere?

akumakuja28:
  1. Add 2 different addresses to the address list
  2. Name the source address Bla
  3. Freeze the destination address
  4. Double click on the value field of the destination address
  5. Enter (Bla) for the value and hit OK
  6. The destination address's value will now always change to the source address's value



I had No () thats why it wasnt working. I have been over alot of the documentation regarding cheat engine and never came across this.


@Dark_Byte Is thr any other Hidden AddressList Features?

_________________
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Wed May 18, 2016 7:06 pm    Post subject: Reply with quote

I always utilize the child records with an address of "+##" so they act as offsets of their parent record.

You can also freeze a value to allow it to increase, but never decrease. And vice versa.
Back to top
View user's profile Send private message
Meiyoh
Master Cheater
Reputation: 1

Joined: 14 Mar 2015
Posts: 402

PostPosted: Thu May 19, 2016 1:51 am    Post subject: Reply with quote

ParkourPenguin wrote:
Neat feature DB, didn't know about that. Are the little things like this documented anywhere?

akumakuja28:
  1. Add 2 different addresses to the address list
  2. Name the source address Bla
  3. Freeze the destination address
  4. Double click on the value field of the destination address
  5. Enter (Bla) for the value and hit OK
  6. The destination address's value will now always change to the source address's value


This doesn't repeatedly copy values it just does once and stops. How to make this copy repeatedly. Also if I enable LUA I can't stop it so when I disable the address it crashes Cheat Engine.
Back to top
View user's profile Send private message
Cake-san
Grandmaster Cheater
Reputation: 8

Joined: 18 Dec 2014
Posts: 541
Location: Semenanjung

PostPosted: Thu May 19, 2016 5:54 am    Post subject: Reply with quote

Meiyoh wrote:

This doesn't repeatedly copy values it just does once and stops. How to make this copy repeatedly. Also if I enable LUA I can't stop it so when I disable the address it crashes Cheat Engine.


You have to freeze mark it [x] then, set the value to "(bla)" (without the quote).

I think this is pretty convenience though especially for game nowdays.

Dark Byte -Is there anything that can be used to decrease the file size when using dropdown value ? ,eg: reference/symbol because, for someone that have internet speed like me or slower would appreciate smaller file size.

I'm sorry for asking to much Embarassed , can you add a few feature like temporary autosave when change has been made like notepad++/Word features and feature addresslist xor calculation because some games calculated its own offset. Laughing

Sorry, And thankyou for your hardwork. Embarassed

picture relate to dropdown value:



stella12.png
 Description:
 Filesize:  31.25 KB
 Viewed:  17551 Time(s)

stella12.png



_________________
...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
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