SRL Archive - General Botting Help

How to use simba on browser


GTFO_Jagex

2014-08-30 14:43:39

Can anyone explain how to use simba on browser , trying to use Ashaman88's livid farm script

Brandon

2014-08-30 16:12:33

It's already possible using just Simba alone.. If you load RS in the browser and switch to Direct-X mode, you can drag the green cross-hairs to the window and run the following:


procedure Show(Bmp: Integer);
var
W, H: Integer;
begin
GetBitmapSize(Bmp, W, H);
DisplayDebugImgWindow(W, H);
DrawBitmapDebugImg(Bmp);
end;

var
Bmp: Integer;
W, H: Integer;
begin
GetClientDimensions(W, H);
Bmp := BitmapFromClient(0, 0, W - 1, H - 1);
Show(Bmp);
FreeBitmap(Bmp);
end.


If it displays the screen, it works fine (works for me without plugins).. If it doesn't, you need to use a plugin and place it in ONE of two places..

1. The browser's main folder.
2. Java's bin folder.


However, for Direct-X, there is no need for doing so in the browser (at least on my computer). For OpenGL, you WILL need a plugin no matter what. Both plugins support the browser or any application capable of OpenGL or Direct-X.

The new plugins have the format:


SetupDXI(GetNativeWindow());
SetupDXI(GetNativeWindow(), Width, Height);

SetupGLX(GetNativeWindow());
SetupGLX(GetNativeWindow(), Width, Height);

Both requiring the latest Simba so that you can use "GetNativeWindow()".. But again, plugins aren't needed for Direct-X capturing in the browser..

Spaceblow

2014-08-30 19:39:22

Why would you want to do this? SMART is actually quite handy. :)

Clarity

2014-08-30 19:56:53

From: Spaceblow
Why would you want to do this? SMART is actually quite handy. :)

Because SMART is ultimately detectable.

Spaceblow

2014-08-30 19:59:50

From: Clarity
Because SMART is ultimately detectable.
So using it on a browser would be way safer than using it in SMART? Can Jagex tell if you're using it?

Brandon

2014-08-30 20:15:14

From: Spaceblow
So using it on a browser would be way safer than using it in SMART? Can Jagex tell if you're using it?



With the current (latest r1100) version of Simba, it is still detectable whether it is in the browser or not. This has been explained many times. It will ALWAYS be a cat and mouse game. The "browser IS safer" but that means nothing. Detectable means detectable.. doesn't matter "how much" easier it is.

slacky

2014-08-30 20:18:16

From: Brandon
With the current (latest r1100) version of Simba, it is still detectable whether it is in the browser or not. This has been explained many times. It will ALWAYS be a cat and mouse game. The browser is safer but that means nothing. Detectable means detectable.. doesn't matter "how much" easier it is.

Always? Not if I made robot control my mouse, and film the screen. Booyah! I win!

PS: trying to be funny, at least pretend to be amused.

Brandon

2014-08-30 20:29:37

From: slacky
Always? Not if I made robot control my mouse, and film the screen. Booyah! I win!

PS: trying to be funny, at least pretend to be amused.



Unless you have a physical robot with many fingers to press keys and move the mouse and has its own script that doesn't run on the same computer.

Ian

2014-08-30 21:22:04

From: slacky
Always? Not if I made robot control my mouse, and film the screen. Booyah! I win!

PS: trying to be funny, at least pretend to be amused.


https://www.youtube.com/watch?v=dXLUzvn8r-4

[YOUTUBE]https://www.youtube.com/watch?v=dXLUzvn8r-4[/YOUTUBE]

slacky

2014-08-30 21:50:07

From: Brandon
Unless you have a physical robot with many fingers to press keys and move the mouse and has its own script that doesn't run on the same computer.

Basically you just need to be able to use the mouse (for most (OS)RS-stuff anyways).. And that is pretty simple. Some cheap arduino-components, and your old laptop and your off :P Well, the cam should be of somewhat decent quality if you want it to work :-P

Flight

2014-08-30 22:01:05

From: slacky
Always? Not if I made robot control my mouse, and film the screen. Booyah! I win!

PS: trying to be funny, at least pretend to be amused.


Would this still be classified as 'macroing'? :huh:

Ian

2014-08-30 22:28:26

From: Flight
Would this still be classified as 'macroing'? :huh:

I think so, Jagex goes by the 1 input = 1 output rule.

Turpinator

2014-08-30 22:29:51

From: slacky
Basically you just need to be able to use the mouse (for most (OS)RS-stuff anyways).. And that is pretty simple. Some cheap arduino-components, and your old laptop and your off :P Well, the cam should be of somewhat decent quality if you want it to work :-P

using a camera? nah. could just feed the video into it through a TV tuner type thing for perfect quality.

From: BMWxi
I think so, Jagex goes by the 1 input = 1 output rule.

my 1 input is clicking play, its one output is it doing the things it should.

Flight

2014-08-30 22:44:36

From: BMWxi
I think so, Jagex goes by the 1 input = 1 output rule.


I don't see where that would breach the rule actually. The mouse and keyboard are not being controlled by a program but a physical entity. The rules should be specific if the entity must be human, or even biological. Let's say an alien crashes to Earth and instead of studying and/or working with it for the better of the human race I force it to spin my flax in Runescape. The in-game account would still be controlled by an entity and biologically, but not human. Ban-able or not?

bonsai

2014-08-30 23:42:43

Wouldn't the safest way be to run RS in a VM using their client or the browser? Then drive that with simba on the main machine.

Nothing detectable on the VM (other than detecting that it is a VM). The VM doesn't know if it's you or simba driving and neither would they.

Ian

2014-08-31 00:15:35

From: Flight
I don't see where that would breach the rule actually. The mouse and keyboard are not being controlled by a program but a physical entity. The rules should be specific if the entity must be human, or even biological. Let's say an alien crashes to Earth and instead of studying and/or working with it for the better of the human race I force it to spin my flax in Runescape. The in-game account would still be controlled by an entity and biologically, but not human. Ban-able or not?

Maybe they could only get you for account sharing then ;)

GTFO_Jagex

2014-08-31 00:29:44

From: Brandon
With the current (latest r1100) version of Simba, it is still detectable whether it is in the browser or not. This has been explained many times. It will ALWAYS be a cat and mouse game. The "browser IS safer" but that means nothing. Detectable means detectable.. doesn't matter "how much" easier it is.


Livid farm is just mouse movement and doesn't require any camera angle change or physical movement , will that be hard to get detected ?

GTFO_Jagex

2014-08-31 02:47:31

From: Brandon
It's already possible using just Simba alone.. If you load RS in the browser and switch to Direct-X mode, you can drag the green cross-hairs to the window and run the following:


procedure Show(Bmp: Integer);
var
W, H: Integer;
begin
GetBitmapSize(Bmp, W, H);
DisplayDebugImgWindow(W, H);
DrawBitmapDebugImg(Bmp);
end;

var
Bmp: Integer;
W, H: Integer;
begin
GetClientDimensions(W, H);
Bmp := BitmapFromClient(0, 0, W - 1, H - 1);
Show(Bmp);
FreeBitmap(Bmp);
end.


If it displays the screen, it works fine (works for me without plugins).. If it doesn't, you need to use a plugin and place it in ONE of two places..

1. The browser's main folder.
2. Java's bin folder.


However, for Direct-X, there is no need for doing so in the browser (at least on my computer). For OpenGL, you WILL need a plugin no matter what. Both plugins support the browser or any application capable of OpenGL or Direct-X.

The new plugins have the format:


SetupDXI(GetNativeWindow());
SetupDXI(GetNativeWindow(), Width, Height);

SetupGLX(GetNativeWindow());
SetupGLX(GetNativeWindow(), Width, Height);

Both requiring the latest Simba so that you can use "GetNativeWindow()".. But again, plugins aren't needed for Direct-X capturing in the browser..

Okay , thanks…it displays the screen. So now i just need to select the browser using the crosshair and then just run the script ?

EDIT : i tried that but it seems to start loading SMART

Brandon

2014-08-31 10:33:03

From: bonsai
Wouldn't the safest way be to run RS in a VM using their client or the browser? Then drive that with simba on the main machine.

Nothing detectable on the VM (other than detecting that it is a VM). The VM doesn't know if it's you or simba driving and neither would they.


I really doubt Simba on the native OS can interact with a window in a VM. Pretty sure Simba uses WindowHandles to capture images and a VM is just a single window handle (the VMWare window or the VirtualPC window or w/e). If you were able to select windows from within the VM, from the outside.. that would be insane.



From: GTFO_Jagex
Okay , thanks…it displays the screen. So now i just need to select the browser using the crosshair and then just run the script ?

EDIT : i tried that but it seems to start loading SMART



That's exactly what you'd do.. The reason it runs SMART is because that script explicitly loads SMART. You need to remove the code that does so.. Basically, at the top of the script remove "{$DEFINE SMART}" and any code that draws on SMART using "smartImage".

bonsai

2014-08-31 12:45:17

From: Brandon
I really doubt Simba on the native OS can interact with a window in a VM. Pretty sure Simba uses WindowHandles to capture images and a VM is just a single window handle (the VMWare window or the VirtualPC window or w/e). If you were able to select windows from within the VM, from the outside.. that would be insane.


You wouldn't have to target the specific window in the VM. If all it was running was a full screen rs client you just target the whole vm and offset the border areas.

Not saying we should jog right out and do it but it is the most undetectable method I'm aware of.

Olly

2014-08-31 13:28:17

From: bonsai
You wouldn't have to target the specific window in the VM. If all it was running was a full screen rs client you just target the whole vm and offset the border areas.

Not saying we should jog right out and do it but it is the most undetectable method I'm aware of.


Until they load a dll.. and detect the mouse and keyboard aren't real. :p

America19

2014-09-07 13:46:12

From: Brandon
It's already possible using just Simba alone.. If you load RS in the browser and switch to Direct-X mode, you can drag the green cross-hairs to the window and run the following:


procedure Show(Bmp: Integer);
var
W, H: Integer;
begin
GetBitmapSize(Bmp, W, H);
DisplayDebugImgWindow(W, H);
DrawBitmapDebugImg(Bmp);
end;

var
Bmp: Integer;
W, H: Integer;
begin
GetClientDimensions(W, H);
Bmp := BitmapFromClient(0, 0, W - 1, H - 1);
Show(Bmp);
FreeBitmap(Bmp);
end.


If it displays the screen, it works fine (works for me without plugins).. If it doesn't, you need to use a plugin and place it in ONE of two places..

1. The browser's main folder.
2. Java's bin folder.


However, for Direct-X, there is no need for doing so in the browser (at least on my computer). For OpenGL, you WILL need a plugin no matter what. Both plugins support the browser or any application capable of OpenGL or Direct-X.

The new plugins have the format:


SetupDXI(GetNativeWindow());
SetupDXI(GetNativeWindow(), Width, Height);

SetupGLX(GetNativeWindow());
SetupGLX(GetNativeWindow(), Width, Height);

Both requiring the latest Simba so that you can use "GetNativeWindow()".. But again, plugins aren't needed for Direct-X capturing in the browser..

Um when i do that it pops up a window with just black called debugimgform and it take up all of my 3 monitors?

masterBB

2014-09-07 13:55:08

From: America19
Um when i do that it pops up a window with just black called debugimgform and it take up all of my 3 monitors?


Are you sure you have followed this step:
drag the green cross-hairs

Brandon

2014-09-07 13:55:26

From: America19
Um when i do that it pops up a window with just black called debugimgform and it take up all of my 3 monitors?


Are you absolutely sure you did everything right? There's no way it wouldn't work (for RS at least). Simba CAN natively capture data from Direct-X windows without a plugin. I haven't found a Direct-X game (other than the ones & windows I make) that Simba cannot capture.

I also haven't heard from anyone that tried this that it failed.. Are you absolutely sure you did everything right?


If you drag the crosshair on RS, it will look like:



Then after running the script, it will look like:


tealc

2014-09-07 13:55:39

Did you drag the green cross-hairs on the runescape browser client? If you did try safe mode or one of brandon's plugins.

Mr. Roboto

2014-09-07 13:56:48

From: BMWxi
https://www.youtube.com/watch?v=dXLUzvn8r-4

[YOUTUBE]https://www.youtube.com/watch?v=dXLUzvn8r-4[/YOUTUBE]

That was priceless.

America19

2014-09-07 14:24:33

From: tealc
Did you drag the green cross-hairs on the runescape browser client? If you did try safe mode or one of brandon's plugins.

I tried safemode and the green cross-hairs and i have brandons directx plugin installed.

Brandon

2014-09-07 14:57:18

From: America19
I tried safemode and the green cross-hairs and i have brandons directx plugin installed.



And NONE of them worked? Not even Safemode? BOTH modes showed the black screen?

America19

2014-09-07 14:58:42

also when i try to run the script im using this usually come up
Exception in Script: Runtime error: "Range check error" at line 145, column 13 in file "C:\Simba\Includes\SRL-6\lib\interfaces\lobby\lobby.simba"

America19

2014-09-07 15:00:22

but yes i have tried everything you have said and i get this http://gyazo.com/e2bacbab08029666b8f19f96c687cbdf

Brandon

2014-09-07 15:02:17

From: America19
but yes i have tried everything you have said and i get this http://gyazo.com/e2bacbab08029666b8f19f96c687cbdf



I understand you did everything we asked.. but I'm asking if the same image as shown in your link, is also happening in Safemode.

America19

2014-09-07 15:07:47

From: Brandon
I understand you did everything we asked.. but I'm asking if the same image as shown in your link, is also happening in Safemode.

Yes

America19

2014-09-07 15:37:59

From: America19
Yes

Im just going to probably give up i have tried EVERYTHING like everything on your TUT i downloaded different browsers tried running simba as admin.

Brandon

2014-09-07 15:46:28

From: America19
Yes



This is impossible.. How could it NOT work in Safemode? The only way this could possibly be true is if multiple monitors are somehow affecting the way Simba operates.. Even then, it'd capture at least one Window (desktop by default).

I've heard some on this site use multiple monitors but never had the same problem as you are describing.


The behaviour you're describing is that Simba is unable to capture ANY and ALL windows on your system.. even GDI windows (single buffer non-OpenGL & non-Direct-X windows). If this is true, you wouldn't even be able to take screenshots with gyazo or any other program..


I would gladly teamviewer you and see if such a thing is actually possible. Seriously though, if you have a problem even in Safemode such that Simba cannot even screen capture, then something is definitely wrong with either Simba OR your computer/multiple-monitors..

Again, I'd teamviewer you if you're up to it. You can just PM me the ID & temp pass if you want. What you are describing makes NO sense at all.

@Kasi; uses multiple monitors IIRC.. never had a problem on his comp :l

America19

2014-09-07 15:50:26

From: Brandon
This is IMPOSSIBLE! How could it NOT work in Safemode? The only way this could possibly be true is if multiple monitors are somehow affecting the way Simba operates.. Even then, it'd capture at least one Window (desktop by default).

I've heard some on this site use multiple monitors but never had the same problem as you are describing.


The behaviour you're describing is that Simba is unable to capture ANY and ALL windows on your system.. even GDI windows (single buffer non-OpenGL & non-Direct-X windows). If this is true, you wouldn't even be able to take screenshots with gyazo or anything.


I would gladly teamviewer you and see if such a thing is actually possible. Seriously though, if you have a problem even in Safemode such that Simba cannot even screen capture, then something is definitely wrong with either Simba OR your computer/multiple-monitors..

Again, I'd teamviewer you if you're up to it. You can just PM me the ID & temp pass if you want. What you are describing makes NO sense at all.

I would be more than happy to teamview just allow me to download it

America19

2014-09-07 15:51:48

From: Brandon
This is IMPOSSIBLE! How could it NOT work in Safemode? The only way this could possibly be true is if multiple monitors are somehow affecting the way Simba operates.. Even then, it'd capture at least one Window (desktop by default).

I've heard some on this site use multiple monitors but never had the same problem as you are describing.


The behaviour you're describing is that Simba is unable to capture ANY and ALL windows on your system.. even GDI windows (single buffer non-OpenGL & non-Direct-X windows). If this is true, you wouldn't even be able to take screenshots with gyazo or anything.


I would gladly teamviewer you and see if such a thing is actually possible. Seriously though, if you have a problem even in Safemode such that Simba cannot even screen capture, then something is definitely wrong with either Simba OR your computer/multiple-monitors..

Again, I'd teamviewer you if you're up to it. You can just PM me the ID & temp pass if you want. What you are describing makes NO sense at all.

I downloaded it

tealc

2014-09-07 15:54:31

From: America19
Yes

You are using runescape in safemode(software) mode not windows safemode?

Kasi

2014-09-07 16:33:37

From: Brandon
@Kasi; uses multiple monitors IIRC.. never had a problem on his comp :l


This is true. (zoom out)


Brandon

2014-09-07 17:41:36

Well.. I solved it lol.

OP wasn't lying. NOTHING works in Safemode OR Software mode for them. NOTHING at all. In fact, Simba is completely broken on their comp. It cannot capture windows (Not even the desktop or explorer or the browser).. NOTHING. It also doesn't allow copy paste lol. Had to write everything out by hand. It has a serious problem capturing their clipboard and windows. They even unplugged all their monitors except 1.

It's completely useless on their comp. What I did was download the plugin + the official RS client. Placed the plugin in the bin folder and allowed it to map the memory via the crosshairs instead of by PID.. The target was then set to the plugin's memory map pointer. It will work in the browser if OP drags the d3d9.dll to the browser's main folder. That much is true. But without it, they're out of luck.

The PID to WindowHandle (allowing them to use the crosshairs with the plugin) made life easier for them and they get the same benefits/usage as the browser + regular setup as usual for all other scripts.


It's weird because code capture windows in C & C++ works perfectly fine. ACA even works.. Simba is just iunno.. broken -_-
I literally went onto their comp with doubts in my mind (it's impossible for safemode not work blah blah..) but OP was right lol.. NOTHING, even capturing the desktop doesn't work.

Spent the last hour troubleshooting it and gave up before installing a compiler and compiling everything for them (so it works with the crosshairs). There is no other way for OP to use Simba without the plugins. Not even in Safemode. Never saw anything like this before.. But it's definitely Simba.

America19

2014-09-07 17:43:09

From: Brandon
Well.. I solved it lol.

OP wasn't lying. NOTHING works in Safemode OR Software mode for them. NOTHING at all. In fact, Simba is completely broken on their comp. It cannot capture windows (Not even the desktop or explorer or the browser).. NOTHING.

It's completely useless on their comp. What I did was download the plugin + the official RS client. Placed the plugin in the bin folder and allowed it to MAP the memory via the crosshairs instead of by PID.. The target was then set to the plugin's memory map pointer. It will work in the browser if OP drags the d3d9.dll to the browser's main folder. That much is true. But without it, they're out of luck.

This made life easier for them and they get the same benefits/usage as the browser.


It's weird because code to capture windows with ACA or C & C++ works perfectly fine. Simba is just Iunno.. broken -_-

Spent the last hour troubleshooting it and gave up. There is no other way for OP to use Simba without the plugins. Not even in Safemode. Never saw anything like this before.. But it's definitely Simba.

I feel horrible for saying this but now i get this

Error: Duplicate declaration "drawText" at line 562
Compiling failed.

Brandon

2014-09-07 17:46:12

From: America19
I feel horrible for saying this but now i get this

Error: Duplicate declaration "drawText" at line 562
Compiling failed.



Oh that's just an include problem. That problem isn't related to the setup you have now. Everything in your setup works fine.

To run SRL-6 scripts using that version of Simba.. You need Olly's SRL-6 include from: https://villavu.com/forum/showthread.php?t=109970&p=1305585#post1305585

Skip the first instruction. Follow the rest.

America19

2014-09-07 18:48:21

does anyone know what could cause for the script to work but then half way through it stops working and just keeps on right clicking i have all the correct settings

Ian

2014-09-07 19:02:40

From: America19
does anyone know what could cause for the script to work but then half way through it stops working and just keeps on right clicking i have all the correct settings


It might be a problem with the script, try posting on the script thread too see if anyone else has had the same problem.

Or try a different script and see if that does the same thing

ginwap

2014-10-08 15:29:55

Maybe someone can give video, wich shows how to use simba in webclient ?