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 


I have a question.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Shahryar
Advanced Cheater
Reputation: 0

Joined: 11 Jun 2011
Posts: 85

PostPosted: Sat Jun 11, 2011 6:26 pm    Post subject: I have a question. Reply with quote

How create a trainer that show a game is running or not.
such as show it on text object.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Sun Jun 12, 2011 4:20 am    Post subject: Reply with quote

define the function "onOpenProcess(processid)" in your trainer
because your trainer only opens 1 process you can be sure that if OpenProcess is called by the trainer, it has found the game running

example:
you have a form named TRAINERFORM and a label named lblIsRunning
Code:

function onOpenProcess(processid)
  control_setCaption(TRAINERFORM_lblIsRunning, 'The game is running') 
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


Last edited by Dark Byte on Sun Jun 12, 2011 4:32 am; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger
Shahryar
Advanced Cheater
Reputation: 0

Joined: 11 Jun 2011
Posts: 85

PostPosted: Sun Jun 12, 2011 4:26 am    Post subject: Reply with quote

Thanks Dark Byte.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Shahryar
Advanced Cheater
Reputation: 0

Joined: 11 Jun 2011
Posts: 85

PostPosted: Mon Jun 13, 2011 11:31 am    Post subject: Reply with quote

can launch the game's exe file with io.popen function?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Mon Jun 13, 2011 11:59 am    Post subject: Reply with quote

it's possible
_________________
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
Shahryar
Advanced Cheater
Reputation: 0

Joined: 11 Jun 2011
Posts: 85

PostPosted: Mon Jun 13, 2011 12:06 pm    Post subject: Reply with quote

Dark Byte wrote:
it's possible


how?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Mon Jun 13, 2011 12:08 pm    Post subject: Reply with quote

io.popen(pathtofile)
_________________
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
Shahryar
Advanced Cheater
Reputation: 0

Joined: 11 Jun 2011
Posts: 85

PostPosted: Mon Jun 13, 2011 12:16 pm    Post subject: Reply with quote

Dark Byte wrote:
io.popen(pathtofile)


by this code
Code:
function LaunchClick()
filetolaunch=openDialog_execute(Trainer_OD)
if filetolaunch~='' then
io.popen(filetolaunch)
end
end


is it possible?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Mon Jun 13, 2011 12:23 pm    Post subject: Reply with quote

should be possible yes, it's basically the same as shellExecute but also shows a console window
_________________
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
Shahryar
Advanced Cheater
Reputation: 0

Joined: 11 Jun 2011
Posts: 85

PostPosted: Mon Jun 13, 2011 12:31 pm    Post subject: Reply with quote

Dark Byte wrote:
should be possible yes, it's basically the same as shellExecute but also shows a console window


but result is nothing. i tried to take a result but i couldn't.
have you another way for make it. i know that there must be another way for this. i know you can find it. Smile
How i can run a exe file by io.popen function?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Shahryar
Advanced Cheater
Reputation: 0

Joined: 11 Jun 2011
Posts: 85

PostPosted: Mon Jun 20, 2011 7:09 am    Post subject: Reply with quote

Code:
shellExecute(command, parameters OPTIONAL, folder OPTIONAL, showcommand OPTIONAL)

How do I fill 'folder OPTIONAL' by using this code:
Code:

function LaunchClick()
local filetolaunch=openDialog_execute(Trainer_OD)
if filetolaunch~='' then
local f = shellExecute(???,???,???);
end
end
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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