I'm using the language, AutoIt.
1st: logging in with send keys doesn't work, but I was able to use controlSend to get it to type correctly. Even though it's typing correctly, I'm still getting invalid password, even though it's not invalid (it shows correct password when the 'bot' types the password into the username field).
I'm thinking the conquer client knows that keys are not actually being pressed and won't accept the virtual keys being sent. Does anyone have a work around? Should I write a simple send key function in a different language (C++ maybe?) and just have autoit call that when needed?
Below is the current send key function (plz give me credit if u use it) but like i said, for some reason the conquer client is rejecting it (maybe adding an invisible char or something)
Code:
Func conquer_send($string)
$len = StringLen($string)
Sleep(1000)
For $i = 1 To $len Step 1
$key = StringMid($string, $i, 1)
$upper = StringIsUpper($key)
If $upper Then
Send("{SHIFTDOWN}")
Sleep(25)
ControlSend(getConquerWindow(), "", "", StringUpper(StringMid($string, $i, 1)))
Sleep(25)
send("{SHIFTUP}")
Else
ControlSend(getConquerWindow(), "", "", StringMid($string, $i, 1))
EndIf
Sleep(Random(100, 200))
Next
ControlSend(getConquerWindow(), "", "", "{Enter}")
Sleep(200)
;Beep(700,500)
EndFunc ;==>conquer_send






