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 


Please Help This Code

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

Joined: 25 Jun 2012
Posts: 24
Location: I don't know

PostPosted: Fri Jun 29, 2012 4:42 am    Post subject: Please Help This Code Reply with quote

How to read "open process status" code ??
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8516
Location: 127.0.0.1

PostPosted: Fri Jun 29, 2012 5:55 am    Post subject: Reply with quote

Do you mean the return from openProcess?

Code:

local ret = openProcess( "winmine" );
if ( ret ~= nil ) then
    print( "process found!" );
else
    print( "process not found!" );
end

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
FestakanCivciv
Newbie cheater
Reputation: 0

Joined: 25 Jun 2012
Posts: 24
Location: I don't know

PostPosted: Fri Jun 29, 2012 6:02 am    Post subject: Reply with quote

Im mean "Trainer Found Game" "Trainer NOT Found Game" caption on lines.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Fri Jun 29, 2012 7:54 am    Post subject: Reply with quote

You could add "function onOpenProcess()" and if that it called it means the trainer has found the process.
so in there set the caption of a label to "Trainer Found Game"

Alternatively, create a timer object that calls "getOpenedProcessID()"
If it returns anything else than 0 it means the trainer has opened the process, and then you can set the caption of the label

_________________
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
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