U can also make it work the cheap way, use tcp functions in your bot and create a server in autoit where all clients will connect.
[Clients] U can use a web like pastebin to set the clients where u want them to connect (u must be registered to edit your pastes)
Code:
TCPStartup()
$ipConection = BinaryToString(InetRead("http://pastebin.com/raw/XthsTvy2"))
$PORT = 1234
AdlibRegister("doLogin",10000);Check for login every 10secs
Func myBot()
;blah blah
;blah
EndFunc
Func doLogin()
$con = TCPConnect($ipConection,$PORT)
If @error Then Return -1;
AdlibUnRegister("doLogin")
EndFunc
While Sleep(15)
myBot()
WEnd
[Server] U have to open your choosen port to make this work
Code:
#include <Array.au3>
TCPStartup()
$listenSocket = TCPListen("127.0.0.1",1234)
Global $clients[0]
$timeOut = 5000
AdlibRegister("acceptConections")
AdlibRegister("checkAlive",$timeOut)
Func acceptConections()
$socket = 0
$socket = TCPAccept($listenSocket)
If $socket <> -1 Then addClient($socket)
EndFunc
Func addClient($s)
ReDim $clients[UBound($clients)+1]
$clients[UBound($clients)-1] = $s
printdata()
EndFunc
Func countClients()
Return UBound($clients)
EndFunc
Func printdata()
ToolTip("N: "&countClients(),0,0)
EndFunc
Func checkAlive()
For $i = 0 To UBound($clients)-1
TCPSend($clients[$i],"")
If @error Then
_ArrayDelete($clients,$i)
printdata()
checkAlive() ;Recursive call will remove clients that are disconnected without waiting again 5sec timeout
ExitLoop
EndIf
Next
EndFunc
While Sleep(15)
WEnd