Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void button1_Click(object sender, EventArgs e)
- {
- // Find The Window Handle For Lineage 2
- IntPtr handle = FindWindow("L2UnrealWWindowsViewportWindow", "Lineage II");
- if (!handle.Equals(IntPtr.Zero))
- {
- // Activate The Lineage 2 Window
- if (SetForegroundWindow(handle))
- // send "Send The TextBox Text To The Lineage 2 Window"
- SendKeys.SendWait(Username.Text);
- SendKeys.SendWait("{TAB}");
- SendKeys.SendWait(Password.Text);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement