To be more specific, i want to write a message in a window process, a game ... just force to send ("hello wolrd") and force an "enter input" ... Is there possible?
Ok, i'm making one BOT for a game, i already got the memory address of some variables as mana, hp and more, now i want something like that... if (mana < x) then says "spells"
Can i use the Process to make it?
Process.GetProcessesByName("process")[0]
Now i'm sending the message from my game using de DLL
[DllImport("user32.dll", CharSet = CharSet.Auto)]
public static extern string SendMessage(IntPtr hWnd, uint msg, IntPtr wParam, IntPtr lParam);
but when i try to to send an "ENTER" command like that
SendKeys("{ENTER}", tela);
it just writes {ENTER} but don't use the enter button ... Some one can help?