Attaching to process.

Discuss, ask for help, share ideas, give suggestions, read tutorials, and tell us about bugs you have found with MicroMacro in here.

Do not post RoM-Bot stuff here. There is a subforum for that.
Forum rules
This is a sub-forum for things specific to MicroMacro.

This is not the place to ask questions about the RoM bot, which uses MicroMacro. There is a difference.
Post Reply
Message
Author
User avatar
Rishijin
Posts: 49
Joined: Sat Jul 04, 2009 4:25 pm
Location: Kauai

Attaching to process.

#1 Post 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?
User avatar
Administrator
Site Admin
Posts: 5344
Joined: Sat Jan 05, 2008 4:21 pm

Re: Attaching to process.

#2 Post 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.
Post Reply