View previous topic :: View next topic |
Author |
Message |
Shahryar Advanced Cheater
Reputation: 0
Joined: 11 Jun 2011 Posts: 85
|
Posted: Sat Jun 11, 2011 6:26 pm Post subject: I have a question. |
|
|
How create a trainer that show a game is running or not.
such as show it on text object.
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25792 Location: The netherlands
|
Posted: Sun Jun 12, 2011 4:20 am Post subject: |
|
|
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 |
|
 |
Shahryar Advanced Cheater
Reputation: 0
Joined: 11 Jun 2011 Posts: 85
|
Posted: Sun Jun 12, 2011 4:26 am Post subject: |
|
|
Thanks Dark Byte.
|
|
Back to top |
|
 |
Shahryar Advanced Cheater
Reputation: 0
Joined: 11 Jun 2011 Posts: 85
|
Posted: Mon Jun 13, 2011 11:31 am Post subject: |
|
|
can launch the game's exe file with io.popen function?
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25792 Location: The netherlands
|
Posted: Mon Jun 13, 2011 11:59 am Post subject: |
|
|
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 |
|
 |
Shahryar Advanced Cheater
Reputation: 0
Joined: 11 Jun 2011 Posts: 85
|
Posted: Mon Jun 13, 2011 12:06 pm Post subject: |
|
|
Dark Byte wrote: | it's possible |
how?
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25792 Location: The netherlands
|
Posted: Mon Jun 13, 2011 12:08 pm Post subject: |
|
|
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 |
|
 |
Shahryar Advanced Cheater
Reputation: 0
Joined: 11 Jun 2011 Posts: 85
|
Posted: Mon Jun 13, 2011 12:16 pm Post subject: |
|
|
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 |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25792 Location: The netherlands
|
Posted: Mon Jun 13, 2011 12:23 pm Post subject: |
|
|
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 |
|
 |
Shahryar Advanced Cheater
Reputation: 0
Joined: 11 Jun 2011 Posts: 85
|
Posted: Mon Jun 13, 2011 12:31 pm Post subject: |
|
|
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.
How i can run a exe file by io.popen function?
|
|
Back to top |
|
 |
Shahryar Advanced Cheater
Reputation: 0
Joined: 11 Jun 2011 Posts: 85
|
Posted: Mon Jun 20, 2011 7:09 am Post subject: |
|
|
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 |
|
 |
|