sorry for the delay, im offshore and the internet is rare. i am writing this code in VB6 and the problem is in the one line.
Code:
*
* *Call SetForegroundWindow(ConquerWindow)
* *Call SendMessage(AccountBox, WM_SETTEXT, 0, Text1.Text)
* *'=============================================================================
the following line is where the problem is. there is an additional step to setting text to a password box. if you know what it is, or a different way please tell.
Code:
* *Call SendMessage(PasswordBox, WM_SETTEXT, 0, "" & Text2.Text)
Code:
* *Dim passwordboxlayer As Long
* *passwordboxlayer = FindWindowEx(ConquerLogonWindow, ByVal 0&, "Button", "")
* *Call SendMessage(passwordboxlayer, BM_CLICK, 0, vbNullString)
* *Sleep (200)
* *'=============================================================================
* *Call SendMessage(Enterbutton, BM_CLICK, 0, vbNullString)
When I finally get this code working properly, I will release it in a bas file fully commented so everyone can understand it and hopefully learn from it. All that is left is this one piece.