Page 1 of 1

Attaching to process.

Posted: Tue Jul 07, 2009 4:01 pm
by Rishijin
Can I attach to a process using findProcessById instead of attaching to a window using findWindow?

For example:

Code: Select all

attach( findProcessById("game.exe") ); 
would that work?

Or I guess a better question is; does it even matter when I am writing values to memory, if it is attached in one way or another?

Re: Attaching to process.

Posted: Tue Jul 07, 2009 4:16 pm
by Administrator
You can use findProcessByExe("game.exe"). However, no. You do not attach by process ID. It goes per window. The attach() function only attaches keyboard/mouse input to that window's input thread, meaning that the game will have keyboard/mouse input send directly to it regardless of whether it is focused or not. So no, to your question, attached input would not mater when you are only trying to read and write memory.