DarthPure Posted June 19, 2021 Share Posted June 19, 2021 If your OSBot client is stuck on "searching for osrs client to attach to" while trying to use mirror mode it's because you have to run it as administrator. To do so we'll have to create a .bat file. Step 1. Open Note Pad Step 2. Copy and Paste the following code: @echo off :: BatchGotAdmin (Run as Admin code starts) REM --> Check for permissions >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system" REM --> If error flag set, we do not have admin. if '%errorlevel%' NEQ '0' ( echo Requesting administrative privileges... goto UACPrompt ) else ( goto gotAdmin ) :UACPrompt echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs" echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs" "%temp%\getadmin.vbs" exit /B :gotAdmin if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" ) pushd "%CD%" CD /D "%~dp0" :: BatchGotAdmin (Run as Admin code ends) :: Your codes should start from the following line java -jar d:\games\osbot.jar Step 3. Pay attention to the last line of code: "java -jar d:\games\osbot.jar". This is the location of your OSBot Client aka the .jar file. This code varies from user to user due to whatever folder you choose to put your client in. Some people have it in storage drive C/D/E/F/G, etc and some people have it in a folder within a folder within a folder. As you can see I have mines in Storage Drive D within a "Games" folder. Also, I must note that I renamed the "OSBot 2.6.27" (client) file to simply "OSBot". Make sure you change the last line starting from java -jar X:/XXXX/osbot.jar in accordance with where that .jar file is located. Step 4. Save as: for the file name put: "OSBot.bat" and for the "Save as type" change it from ".txt" to "All Files". Save. Step 5. Load your OSRS client. Then open the .bat file (icon has 2 gears) in which you just created. You will now be running this .bat file every time you want to use OSBot. Check off Mirror Mode and voilà no more "searching for osrs client to attach to" 1 Quote Link to comment Share on other sites More sharing options...
Rydong Posted May 5, 2022 Share Posted May 5, 2022 I am having a hard time getting mine to work still searching for osrs client to attach to, you mention switching off mirror mode but I either can select stealth or mirror and when I click mirror after running the .bat still keeps searching Quote Link to comment Share on other sites More sharing options...
runetda Posted February 20, 2023 Share Posted February 20, 2023 (edited) heyy, thanks for the tutorial, it was the only method that compensated my problem Edited February 20, 2023 by runetda Quote Link to comment Share on other sites More sharing options...
EvoX Posted September 27, 2023 Share Posted September 27, 2023 im having an issue. so i open notepad, and put @echo off :: BatchGotAdmin (Run as Admin code starts) REM --> Check for permissions >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system" REM --> If error flag set, we do not have admin. if '%errorlevel%' NEQ '0' ( echo Requesting administrative privileges... goto UACPrompt ) else ( goto gotAdmin ) :UACPrompt echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs" echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs" "%temp%\getadmin.vbs" exit /B :gotAdmin if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" ) pushd "%CD%" CD /D "%~dp0" :: BatchGotAdmin (Run as Admin code ends) :: Your codes should start from the following line java -jar C:\Users\new user\Downloads all of that? (i switched the location) then save it as osbot.bat and run it...it doesnt open..what am i doing wrong? Quote Link to comment Share on other sites More sharing options...
botnation123 Posted February 5 Share Posted February 5 doesnt work still searching Quote Link to comment Share on other sites More sharing options...