[Question] Checking DC

05/07/2009 02:11 Belth#1
I searched for an hour for this. What is the best way to check if a char disconnects? This is for my auto-reconnect programme in AutoIt (which is going well). Currently I just check for the "Tip" window but that isn't really practical since any client's disconnection would trigger the script. My current check looks like this:

Code:
If WinExists("Tip") And WinExists($CO_HANDLE) Then
	; close "Tip" window
	$tip_handle = WinGetHandle("Tip")
	WinActivate($tip_handle)
	ControlClick($tip_handle, "", 2)

	Wait(5) ; give co flash window time to load
	ConnectCO()
	Configure5bot()
EndIf
05/07/2009 03:15 447767#2
Wouldnt it be easyer to just use autoIT as a ghost mouse and everytime it sees the tip window set it to close it then use MouseClick("left", yyy ,rrr) to click were it has to click then put ur pass in the script to type it for you then press enter?
05/07/2009 03:25 Belth#3
That is exactly what it does already...

ConnectCo() - gives focus to the co client, enters pass and connects
Configure5bot() - loads a pre-determined profile with the settings I want

But you tell me, what happens if I want to run, say, 2 bots and then 1 disconnects? Both scripts will read the tip window and try to reconnect.
05/07/2009 03:38 447767#4
umm i think theres a file in the conquer>log>(servername)..... then look though those files there names are random numbers i gess but it mite have a error code in the setup file some were and you could set it to that one account.
im not sure if it would even work at all but its work a look?
05/07/2009 03:46 447767#5
Do you have a msn or yahoo?
let me know if you do it would be alot easyer to talk about this.