Jump to content

Closing specific osbot client


Recommended Posts

Posted

Hello, I'm trying to find a way to kill a specific osbot client. This is what i'm after: say I have 10 osbots clients open but I want to kill the client that has account X running, how could I achieve this? I tried:

  • Finding a way to rename the java.exe process with a java argument in a .bat file.
  • Finding a way to rename the window tile of the client, doesn't look like it's possible alway OSBot 2.5.8
  • Using a custom login handler and using System.exit, this only works with local scripts and I need to find a solution that also works with SDN scripts.
  • Killing the process with PKILL in cmd based on it's PID but can't find the connection to link specific clients with it's PID number (which client has PID X running account X).

Thanks for reading, any help is appreciated ?.

Posted
16 minutes ago, myOSBaccount said:

is it possible that you're cheating the system somehow? you don't seem very VIP to me, and yet you're saying you have more than 1 client running :think:

I'm not saying that I am running more than 1 client, I'm planning to. I will buy VIP ofcourse but right now I'm in the process of setting things up.

Posted

 

3 hours ago, Zummy said:

Hello, I'm trying to find a way to kill a specific osbot client. This is what i'm after: say I have 10 osbots clients open but I want to kill the client that has account X running, how could I achieve this? I tried:

  • Finding a way to rename the java.exe process with a java argument in a .bat file.
  • Finding a way to rename the window tile of the client, doesn't look like it's possible alway OSBot 2.5.8
  • Using a custom login handler and using System.exit, this only works with local scripts and I need to find a solution that also works with SDN scripts.
  • Killing the process with PKILL in cmd based on it's PID but can't find the connection to link specific clients with it's PID number (which client has PID X running account X).

Thanks for reading, any help is appreciated ?.

Click the X in the top right corner of your client :) 

Posted (edited)
6 hours ago, Zummy said:

Hello, I'm trying to find a way to kill a specific osbot client. This is what i'm after: say I have 10 osbots clients open but I want to kill the client that has account X running, how could I achieve this? I tried:

  • Finding a way to rename the java.exe process with a java argument in a .bat file.
  • Finding a way to rename the window tile of the client, doesn't look like it's possible alway OSBot 2.5.8
  • Using a custom login handler and using System.exit, this only works with local scripts and I need to find a solution that also works with SDN scripts.
  • Killing the process with PKILL in cmd based on it's PID but can't find the connection to link specific clients with it's PID number (which client has PID X running account X).

Thanks for reading, any help is appreciated ?.

 

Take a look at how I do it in my OSBot manager using the windows tasklist and taskkill commands. I have written this in Java, but you could do it in a batch script.

https://github.com/Explv/osbot_manager/blob/master/osbot_manager/src/bot_parameters/configuration/Configuration.java#L347

Essentially:

1. Collect all the PIDs of running OSBot clients.

2. Start a new OSBot process

3. Collect all the PIDs of running OSBot clients.

4. Check which PID has been added by comparing the two lists

By doing this you can store which PID is associated to which OSBot client, so when you want to close that client, you just kill the process.

Edited by Explv
  • Like 1
Posted
6 hours ago, Explv said:

 

Take a look at how I do it in my OSBot manager using the windows tasklist and taskkill commands. I have written this in Java, but you could do it in a batch script.

https://github.com/Explv/osbot_manager/blob/master/osbot_manager/src/bot_parameters/configuration/Configuration.java#L347

Essentially:

1. Collect all the PIDs of running OSBot clients.

2. Start a new OSBot process

3. Collect all the PIDs of running OSBot clients.

4. Check which PID has been added by comparing the two lists

By doing this you can store which PID is associated to which OSBot client, so when you want to close that client, you just kill the process.

OMG you even added linux support! You saved me so much time, thank you so much! ❤️

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...