Net is going too slow to download vb.net
Here is code in c#, it's not the same code I use so I have nfi if it works. Theoritically, it should.
Should only take a few minutes to convert the code to vb.net
Code:
[DllImport("User32.dll")]
public static extern Int32 SendMessage(IntPtr hWnd, int wMsg, int wParam, int lParam);
[DllImport("User32.DLL")]
public static extern IntPtr FindWindow(String lpClassName, String lpWindowName);
public const int WM_CHAR = 0x102;
public const int WM_KEYDOWN = 0x100;
public const int WM_KEYUP = 0x101;
public void LoginWoW(IntPtr Handle, String aUser, string pUser)
{
Clipboard.Clear();
Clipboard.SetText(aUser);
SendMessage(Handle, 0x102, 0x16, 0x002F0001);
SendKeyPress(Handle, 9);
Clipboard.Clear();
Clipboard.SetText(pUser);
SendMessage(Handle, 0x102, 0x16, 0x002F0001);
SendKeyPress(Handle, 13);
Clipboard.Clear();
}
public void SendKeyPress(IntPtr Handle, int keycode)
{
SendMessage(Handle, WM_KEYDOWN, keycode, 0);
SendMessage(Handle, WM_CHAR, keycode, 0);
SendMessage(Handle, WM_KEYUP, keycode, 0);
}
Called:
Code:
IntPtr nHandle = FindWindow(null, "WoW");
LoginWoW(nHandle, "BoB", "Password");
Untested. WoWs installing to test, VB.net is download so I can test my conversion to vb.net but it wont be done for a while. You'll need to add a few pauses in there.
Redlines won't work in WoW.
Manually sent ctrl down, then v down, then v up and then ctrl up instead of what I've got written.