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 


Making your scripts easier to use

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Tutorials
View previous topic :: View next topic  
Author Message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Sun Oct 12, 2014 3:10 pm    Post subject: Making your scripts easier to use Reply with quote

When you're creating tables and posting them on the internet, you may sometimes encounter users that have never used cheat engine or computers before.

Trying to explain them how to open a process can be painful sometimes (instead of clicking the computer, they open a command prompt and delete their windows folder)
to make things easier for them here is a small snippet of code you can add to your auto assembler scripts, or first script, to help them out:

Code:

{$lua}
local targetprocess="processname.exe" --replace with your target
if readInteger(targetprocess)==nil then --failed reading the memory of the main process module
  if openProcess(targetprocess)==nil then
    messageDialog("I'm sorry, but the game needs to be running to be able to use this feature", mtError, mbOk)
    error();
  end
end
{$asm}


an example of a script that uses it:
Code:

{$lua}
local targetprocess="tutorial-i386.exe" --replace with your target
if readInteger(targetprocess)==nil then --failed reading the memory of the main process module
  if openProcess(targetprocess)==nil then
    messageDialog("I'm sorry, but the game needs to be running to be able to use this feature", mtError, mbOk)
    error();
  end
end
{$asm}

[enable]
00400500:
nop
nop
nop

[disable]
00400500:
db 00 00 00

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

Joined: 20 Oct 2014
Posts: 9

PostPosted: Tue Oct 21, 2014 10:38 pm    Post subject: Reply with quote

saved! dunno when i will learn to make scrips , but till then!
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 Tutorials 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