Jump to content

OSBot windows process management


simson9900

Recommended Posts

Hello,

 

I am trying to automate opening and killing OSBot processes in Windows by utilizing the ProcessBuilder library in Java 11. I can easily open OSBot using the cli with -login flagged, and keep the PID for future termination.

 

The problem is that the OSBot login window opens for a second to log me in, to then open a new process that is the actual bot client. I therefore immediately lose the PID connection to the process.

 

Any ideas how to work arround that?

 

Kind regards

Link to comment
Share on other sites

  • 1 year later...

wmic process Where "CommandLine Like '%oempaloempa%'" Call Terminate

Replace oempaloempa with the runescape account name. So it will look for the command that was started containing that runescape account name :)!

Took me a while to find a solution for this problem..

Edited by AtlassianTarsier
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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