Redouane Master Cheater Reputation: 3
Joined: 05 Sep 2013 Posts: 363 Location: Algeria
|
Posted: Tue Jul 29, 2014 4:14 pm Post subject: Re: How to automatically select an application that's open? |
|
|
Inspectial wrote: | Such as from a table..
local apps = {"Unturned.exe"}
OR, it doesn't even have to be from a table |
You mean open the process?
Code: | openProcess(process_Name_OR_ID) |
for example : openProcess'Unturned.exe'
Wait a second!you want to auto-attach to that process?here's the code:
Code: | do
local t = createTimer( );
-- Avoiding repetitive global access
local PID , _read , _open = getOpenedProcessID , readBytes , openProcess;
t.Interval , t.onTimer = 1000 , function ( )
return ( ( PID() == 0 ) or not _read( 0x400000 , 1 ) ) and _open'notepad.exe'
-- Same as return ( ( PID() ~= 0 ) and _read( 0x400000 , 1 ) ) or _open'Unturned.exe'
--[[ Some other code you may need to execute every second example:recalculate editbox value or label caption etc.
Change 0x400000 to the base of the main module of your application
If cheat engine is attached to another process,then it won't open this one]]--
end
end |
|
|