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 


solved

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
zix3r
How do I cheat?
Reputation: 0

Joined: 26 Mar 2020
Posts: 9
Location: Lithuania.

PostPosted: Mon Mar 30, 2020 2:13 am    Post subject: solved Reply with quote

Hey guys, a fellow newbie here.
I'm trying to create a script that once attached to a game, it would automatically run a autoAssemble script.
Would that be possible?
If so, then please help me create one.
Thank you in advance.

edit:
currently using this, but i dont know how to run an autoassmeble script when the process has been attached, something like this:
Code:

aalist=getAutoAttachList()
stringlist_add(aalist,"Growtopia.exe");
autoAssemble[[
"bla.exe"+1E005E:
db 90 90
]]

_________________
Just a newbie trying to hack
Smile


Last edited by zix3r on Mon Mar 30, 2020 10:22 am; edited 1 time in total
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Mon Mar 30, 2020 4:54 am    Post subject: Reply with quote

Code:
shellExecute("path to deadtopia.ex")
openProcess("deadtopia.exe")
autoAssemble([[
game.exe:
address.exe+12345:
db 90 90
]])

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
zix3r
How do I cheat?
Reputation: 0

Joined: 26 Mar 2020
Posts: 9
Location: Lithuania.

PostPosted: Mon Mar 30, 2020 5:42 am    Post subject: Reply with quote

noo, thats not what i meant.
what i meant was like, when the auto attach, attaches to the process, execute the autoAssemble, you know what i mean now??

_________________
Just a newbie trying to hack
Smile
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Mon Mar 30, 2020 7:05 am    Post subject: Reply with quote

zix3r wrote:
...you know what i mean now??


No, I don't know. I just look on this post:

https://forum.cheatengine.org/viewtopic.php?t=529853&sid=2e3817b3d8c461b1d0e678a28f30c4ac


Code:
if openProcess("deadtopia.exe") then
 -- inject code here
else
-- whatever
end
end


or if AA script already on the table:

Code:
getAutoAttachList().add("deadtopia.exe");

function onOpenProcess(processId)
 if getProcessIDFromProcessName("deadtopia.exe") == processId then
  getAddressList().getMemoryRecordByDescription("Auto Assemble script").Active=true
 end
end

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Mon Mar 30, 2020 7:51 am    Post subject: Reply with quote

Code:

MainForm.OnProcessOpened=function(pid, handle, name)
  autoAssemble([[do
stuff]])
end

_________________
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
zix3r
How do I cheat?
Reputation: 0

Joined: 26 Mar 2020
Posts: 9
Location: Lithuania.

PostPosted: Mon Mar 30, 2020 9:45 am    Post subject: Reply with quote

Dark Byte wrote:
Code:

MainForm.OnProcessOpened=function(pid, handle, name)
  autoAssemble([[do
stuff]])
end


Thanks Corroder and Dark Byte!

_________________
Just a newbie trying to hack
Smile
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