View previous topic :: View next topic |
Author |
Message |
danrevella Master Cheater Reputation: 2
Joined: 11 Jun 2008 Posts: 290
|
Posted: Tue Mar 18, 2014 11:19 am Post subject: Lua script to attach a game process to CE debugger |
|
|
Hi!!
I have got this script who open in CE a process game with an hotkey:
Code: | function togglePause()
if first_time then
local mygame=getForegroundProcess();
--print(mygame);
openProcess(mygame);
pause()
first_time=nil
end
if processPaused then unpause()
else pause()
getMainForm().setFocus();
end
processPaused = not processPaused
end
if pauseHotkey~=nil then
pauseHotkey.destroy();
pauseHotkey=nil
end
pauseHotkey = createHotkey(togglePause,VK_F12)
|
If possible I need 2 modifications:
1) instead of open the process attach CE debugger to the target game instead of open it
2) If possible I would like that this script was available in CE menu under the "Help" section.
Many thanks for your support.
Danrevella
|
|
Back to top |
|
|
mgr.inz.Player I post too much Reputation: 218
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Tue Mar 18, 2014 11:46 am Post subject: |
|
|
Use "OpenDialog Class" and "createProcess".
Code: | createProcess(path, parameters OPTIONAL, debug OPTIONAL, breakonentrypoint OPTIONAL):
Creates a process. If debug is true it will be created using the windows debugger
and if breakonentry is true it will cause a breakpoint to occur on entrypoint |
_________________
|
|
Back to top |
|
|
danrevella Master Cheater Reputation: 2
Joined: 11 Jun 2008 Posts: 290
|
Posted: Wed Mar 19, 2014 5:50 am Post subject: |
|
|
Thanks, but please may you be so kind whit a real example, I don't understand the syntax of the command.....
"parameter optional", but where may I find the optio... etc.
|
|
Back to top |
|
|
|