How to know how many users are using my program

08/15/2016 21:24 skeith_sk8#1
Hi, i have a bot for the darkorbit name and i want to know how many users are really using my program and if its possible have that info in real time (like current users using your program: 11).
Is any func for it, any ideas about how can i do it?
Thankyou
08/15/2016 21:42 Bonnyfication#2
You can create a web based service. Your application can connect to this service and trigger some method. If the client does not connect again after a defined time your service knows that the user is not active anymore.

You need some logic in the backgrounds that can count the amount of active users and publish them to your application.
08/15/2016 21:52 skeith_sk8#3
Quote:
Originally Posted by Bonnyfication View Post
You can create a web based service. Your application can connect to this service and trigger some method. If the client does not connect again after a defined time your service knows that the user is not active anymore.

You need some logic in the backgrounds that can count the amount of active users and publish them to your application.
You gave me the solution, thanks!
08/15/2016 22:31 elmarcia#4
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)

[Server] U have to open your choosen port to make this work
08/19/2016 14:27 YatoDev#5
Thats not the cheap was it's the shit way
08/19/2016 16:05 Devsome#6
Just use a web-service as @Bonnyfication said. Do a POST command on login/logout to update the Player count.
08/19/2016 22:04 Devsome#7
#closed by request