- Thread Author
- #1
Question:
Is there a way access client PIDs automatically and accurately, before logging into the client? (For example: a command line argument, Runemate backend, etc)?
Background:
I'm currently building a management system for my bots and accounts. Each account has its own proxy, and each proxy is tied to a specific official 07 launcher (1, 2, 3, etc) using Proxifier. The process involves picking an account and bot, then having my management system find which proxy and launcher is associated with the account, launching the correct client, and using Runemate's command line arguments to run a bot using the correct client. However, to do this, I need the PID of the correct client. The process is outlined below:
Account 1 ---> Proxy 1 ----> Launch Client 1 ----> Get Client PID ----> Run bot using command line arguments for the specified PID
Problem:
I have not found a viable way for my program to automatically reference the PIDs for each client.
Solution Attempts:
I've found there are three ways to find client PIDs:
Question (Again): Is there a way access client PIDs automatically and accurately, before logging into the client? (For example: a command line argument, Runemate backend, etc)?
Is there a way access client PIDs automatically and accurately, before logging into the client? (For example: a command line argument, Runemate backend, etc)?
Background:
I'm currently building a management system for my bots and accounts. Each account has its own proxy, and each proxy is tied to a specific official 07 launcher (1, 2, 3, etc) using Proxifier. The process involves picking an account and bot, then having my management system find which proxy and launcher is associated with the account, launching the correct client, and using Runemate's command line arguments to run a bot using the correct client. However, to do this, I need the PID of the correct client. The process is outlined below:
Account 1 ---> Proxy 1 ----> Launch Client 1 ----> Get Client PID ----> Run bot using command line arguments for the specified PID
Problem:
I have not found a viable way for my program to automatically reference the PIDs for each client.
Solution Attempts:
I've found there are three ways to find client PIDs:
- View them manually in Runemate's interface
- Running Environment.getRuneScapeProcessId() while already logged in. (Not viable for my setup as this would leave me vulnerable to logging the wrong account into the wrong proxy)
- I built a very rugged Python script that involves:
- Launching Runemate
- Launching an OSRS client
- Taking a screenshot of Runemate's interface
- Using pyautogui to navigate the app and take a screenshot
- Using pytesseract to convert the picture to text
- Searching the text for the PID numbers (the overall process is only around 60% accurate)
Question (Again): Is there a way access client PIDs automatically and accurately, before logging into the client? (For example: a command line argument, Runemate backend, etc)?
Last edited: