• Log in or sign up for an account here: https://www.sythe.org/login

Run multiple SytheLibs without using your Mouse!

Joined
Apr 21, 2005
Sythe Gold
5,469
Messages
8,075
Clefairy
Supporting Business
Discord Voice
Jigglypuff
Hell yeah boooi
Poképedia
Who did this to my freakin' car!
Dat Boi
Dolan Duck
Dolan Trump
I'm LAAAAAAAME
Live Free or Die
Mew
Mewtwo
Poké Prizebox
Rust Player
Sythe Awards 2016 Winner
Sythe Awards 2017 Winner
Sythe Awards 2019 Winner
Tier 3 Prizebox
Toast Wallet User
As of Alpha10 you can run multiple clients on your computer without tying up your mouse and keyboard.

Here's how to do it:

Windows 10 has a feature called virtual desktop. You can access your virtual desktops by holding windows key + tab and clicking + Desktop at the top then switching between them.

To run multiple SytheLib instances neatly it's best to use these multiple desktops, although you don't need to. While holding windows key + tab you can drag and drop windows from your current desktop onto another desktop at the top.

To allow SytheLib to Scrape() your game window while it is off screen (on a virtual desktop for example) you will need to enable GDI mode in your script. You can enable this by first setting your game window then calling SetGDICaptureOn().

Here's some example code

Code:
if (SetWindow("Old School") == ""){Die("Could not find runescape");}while(SelectInnerWindow("SunAwtCanvas")){}
StartTCPImageListen("127.0.0.1", 2000, "p");
SetGDICaptureOn(); // turns GDI mode on
SetVirtualMouseJavaModeOn();
while(true) {
    Scrape();
    Sleep(1);
}

To demonstrate this example open your game client. Move it to the second virtual desktop as per winkey+tab instructions above. Now open a sythelib instance on that virtual dekstop and run the above script. Provided you do not minimise the game client on the second desktop you should now be able to switch back to your first(primary) desktop and open a browser to http://127.0.0.1:2000/p each time you refresh this page it will pull a copy of the current backbuffer from the script. You should see the game client running, rendering correctly off screen. (Incidentally you can use these sockets to keep an eye on multiple game clients running in virtual desktops).

The final piece of this puzzle is virtual inputs. To ensure virtual inputs work correctly with java games such as OSRS you will need to use AntiGCP.exe which ships with the latest SytheLib (Alpha10 at time of writing).

This executable scans for JagexLauncher.exe processes and patches them to fix a specific bug( or feature?) in the java's win32 code which prevents virtual inputs working correctly. Specifically it kills the client's ability to call the win32 GetCursorPos API -- which it doesn't need to call. Once this patch has been made the client can receive all virtual inputs from SytheLib without issue. You will need to run this executable each time you fire up a new client so that it too becomes patched. This patch is undetectable from within java and consists of 5 bytes being written to the process' copy of user32.dll forcing a `return false` from GetCursorPos function call. Note: this does not work on x64 game clients. Ensure you run a x32 game client. If your game client is called something other than JagexLauncher.exe or you are targetting a different game, that is fine but you will need to called AntiGCP from the commandline and pass it an executable name to search for as the first parameter.

Once you have done the above you should be good to go for as many Sythelib clients and game clients as your computer will run without your mouse and keyboard being tied up.
 
Valentine's Singing Competition Winner
Sythe Awards 2015 Winner
Sythe Awards 2016 Winner
Sythe Awards 2020 Winner
Member of the Month Winner
MushyMuncher
Gohan has AIDS
Extreme Homosex
World War 3
I'm LAAAAAAAME
Discord Verified
Off Topic Participant
I should figure out how to make this user friendly in Slade like with a "monitor centre" or something where you can view all your instances and maybe run that executable for you.

Hmmmmmmmmmmmmmmmmmmmmmmmmmmmm big slade update on the horizon I think
 
Last edited:
Runescape Gamblingrunescape gambling
Back
Top