Hello everyone! I?m about to make a relogger for WoW, and I?m in need since I?m kinda newb I want to send the data in textBox1 and textBox2 to WoW. TextBox1 is Username, and TextBox2 is Password.
Calculate where to click? Or use the knowledge that you can as soon as wow starts type in the text boxes and use tab to switch etc. I'm going to assume you are NOT reading the memory so those are your options.
[return: MarshalAs(UnmanagedType.Bool)] [DllImport("user32.dll", SetLastError = true)] static extern bool PostMessage(IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam); http://msdn.microsoft.com/en-us/library/ms644944(VS.85).aspx
So: Process[] p = Process.GetProcessesByName("Wow"); [return: MarshalAs(UnmanagedType.Bool)] [DllImport("user32.dll", SetLastError = true)] static extern bool PostMessage(IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam); ?
Why are you all answering this guy? He has no idea what the hell he is doing. Seriously, go read some books and then ask questions. Epic fail until now.
They are not helping you. You are not thinking by yourself and just copy&pasting code without understanding it? What is the point of it?
figured i'd comment... i learned a lot of things by being given code first and analyzing it from there. may not be the case here, but figured he might deserve the benefit of the doubt