I want to create an Auto Login vb.net application so i'm using this code to put username and password to the specific application which is ( wow.exe ) ( World of Warcraft )
i use this following code it works but the problem if someone uses mouse or keyboard it will break ...
so i wonder if it is possible to send keys without focusing ?Code:Dim wowp As Process = Process.Start(TextBox3.Text & "\wow.exe") If autologin.Checked = True Then wowp.WaitForInputIdle() Do If wowp.Responding Then AppActivate("World of Warcraft") Thread.Sleep(250) AppActivate("World of Warcraft") SendKeys.SendWait(TextBox1.Text) AppActivate("World of Warcraft") SendKeys.SendWait("{TAB}") AppActivate("World of Warcraft") Thread.Sleep(100) AppActivate("World of Warcraft") SendKeys.SendWait(TextBox2.Text) AppActivate("World of Warcraft") Thread.Sleep(100) AppActivate("World of Warcraft") SendKeys.SendWait("{ENTER}") AppActivate("World of Warcraft") Exit Do End If Loop Until 2 = 1
Searched a lot and never found anything.




Reply With Quote
