SRL Archive - News and General

Introducing : Jah's livemacro


Johura

2010-01-10 05:32:22

I've made a little something so I can check up on my bots without having to be at the same computer.

You can check it out my going here : http://www.remotebotviewer.co.nr/

Some things you should know :

  • If there is a 404 error, my computer is off.
  • If the picture isn't moving, my SCAR is turned off.
  • Those silly open mspaint boxes are just there to cover my usernames ect.
  • Yes, that is my own personal IP address.
  • Yes, I'd appreciate it if you didn't do any silly things to my IP / server.
  • Please keep this srl-members only.

Hope you like it, enjoy :).

Simtoon

2010-01-10 05:51:22

upload the script?

Floor66

2010-01-10 05:59:38

It keeps reloading because of a new image but it never gets the time to fully load an image…

n3ss3s

2010-01-10 06:12:00

From: Floor66
It keeps reloading because of a new image but it never gets the time to fully load an image…


Yes, you should try to fix that.. Looks nice though :)

Johura

2010-01-10 06:12:55

From: Simtoon
upload the script?


Which script do you mean?


It keeps reloading because of a new image but it never gets the time to fully load an image…


What do you mean by this?

Dervish

2010-01-10 06:15:53

Im very impressed ! You should in some way add a wait time for it to load the image before getting a new one !

WT-Fakawi

2010-01-10 06:32:24

Haha. Looks good. You might consider reducing the size of the bitmap and make it load faster to get an even more "live" feel.

On the same level: I thought of making a script that send me an email or a SMS/MMS to signal progress or faults :)

Johura

2010-01-10 06:38:18

From: WT-Fakawi
Haha. Looks good. You might consider reducing the size of the bitmap and make it load faster to get an even more "live" feel.

On the same level: I thought of making a script that send me an email or a SMS/MMS to signal progress or faults :)


The image file is converted to a 37kb jpg. :). I might try making it load 1 frame per 500ms instead of every 2 seconds.

I considered the sms option as well, there should be a way to do it with skype. (they only charge 10 cents for each sms.

Floor66

2010-01-10 07:02:37

for reloading every x seconds just use JS or a meta tag.

BobboHobbo

2010-01-10 07:05:43

This is really cool! Good job.

Johura

2010-01-10 07:10:16

From: Floor66
for reloading every x seconds just use JS or a meta tag.


I'm using a meta tag.




Edit:

I changed it to show the progress report. I also changed it from 1 frame per 2 seconds to 1 frame per 1 second. It hasn't made a difference :S.

Edit 2: I kept the browser refresh rate at 1 per second and the picture-taking rate at 1 ever 2 seconds. This seems to have fixed the problems which were mentioned before.

Simtoon

2010-01-10 07:19:19

hmm i might make a php thing and a scar function… then make a public thing.

Johura

2010-01-10 07:32:25

From: Simtoon
hmm i might make a php thing and a scar function… then make a public thing.



I like the idea of making it public, i'm just worried about jagex using my IP to ban my accounts. :unsure:

I used html for the server side of things and a VB program to take + save the images. (I can't work out how to save screen shots with SCAR! :duh:)

Simtoon

2010-01-10 07:41:31

Debug.scar

// * procedure TakeScreenshotEx(Path: string; X1, Y1, X2, Y2: Integer); // * by lordsaturn, small edit by Cazax & EvilChickcen!
// * procedure TakeScreenshot(Path: String); // * by Nava2

But there bmps which are around 1mb..

So im planning to make scar take the screenshot upload it, convert it to png or something using php or js…

Takes a while but works i dont know if scar can convert it tho i can make something else convert it but that wouldnt work good.

Floor66

2010-01-10 07:45:54

SCAR takes screenies > PHP shows & covers up the names (not hard)

Dervish

2010-01-10 09:19:53

Hmm and is this visitable from phone or ipod?

Johura

2010-01-10 09:23:46

From: Dr D. Dervish
Hmm and is this visitable from phone or ipod?


It is just a webpage which reloads a screenshot every second, so yes. But you might want to make a phone/ipod 'version' where the image is scaled to fit the screen size.

Camaro'

2010-01-10 10:17:48

I tryed going to the page, but get this

'Oops! This link appears to be broken.'

your computer must be off.:duh:

mastaraymond

2010-01-10 10:36:14

You can make your own little "MakeScreenshot" function and then use SaveBitmap with the png-extension. Scar will automatically convert these images.

Pseudo-steps:
CopyClientToBitmap
SaveBitmap(Name + '.png')

Awkwardsaw

2010-01-10 15:06:41

why not host it on a website, like 00webhost? that way your cpu doesnt have to be on for it to work. :)

Wanted

2010-01-10 15:41:04

From: Awkwardsaw
why not host it on a website, like 00webhost? that way your cpu doesnt have to be on for it to work. :)


Thats actually a really good idea.

I can even see a possible 'sleep walker' type thing done for randoms.

Sabzi

2010-01-10 16:02:25

From: Awkwardsaw
why not host it on a website, like 00webhost? that way your cpu doesnt have to be on for it to work. :)


But when his computer if off his scripts are off too. So you could see the nothing. But definitely better then showing your ip.

Timer

2010-01-10 16:16:05

From: IceFire908
Thats actually a really good idea.

I can even see a possible 'sleep walker' type thing done for randoms.


Myles and I had a sleepwalker, we just never finished it because there was no point, all the randoms were being remade, and we had reflection random solvers being made then.

Raskolnikov

2010-01-10 18:02:34

can you make the source code public or make a tutorial so we know how to do this kind of stuff? I always wanted to figure out a way to do this.

Thanks,
Cut em2 it

Johura

2010-01-10 18:57:22

From: Cut em2 it
can you make the source code public or make a tutorial so we know how to do this kind of stuff? I always wanted to figure out a way to do this.

Thanks,
Cut em2 it


I'll make it public with source code once I convert it to SCAR and switch to an external host. I'll also write a tutorial.

The problem with SCAR is I'm unsure how to blank out my user names and IP address. SCAR takes an image of the client so I can't just put mspaint windows over it like I was doing before. Any one got any ideas?

Gu3st...

2010-01-10 19:03:45

Make scar detect where the nickname are and make a box on top of it :)

Raskolnikov

2010-01-10 19:17:26

From: Johura
I'll make it public with source code once I convert it to SCAR and switch to an external host. I'll also write a tutorial.

The problem with SCAR is I'm unsure how to blank out my user names and IP address. SCAR takes an image of the client so I can't just put mspaint windows over it like I was doing before. Any one got any ideas?


Thanks so much, I will be looking for that :D.

Daniel

2010-01-10 20:42:47

The position of the nickname / chat windows / private messages are absolute. You can paint over it using PHP by using either ImageLine or ImageSetPixel (maybe more, but I haven't heard of them :p)

Good luck ^_^

Johura

2010-01-10 21:02:07

I just have to do some things before releasing it to the public.

Its back online btw :).

Harry

2010-01-10 21:03:41

Hah, that's quite cool. Nice job.

Simtoon

2010-01-10 21:05:09

[QUOTE=Dan's The Man;673984]The position of the nickname / chat windows / private messages are absolute. You can paint over it using PHP by using either ImageLine or ImageSetPixel (maybe more, but I haven't heard of them :p)

Good luck ^_^

  ActivateClient;
GetClientDimensions(W, H);
BMP := BitmapFromString(W, H, '');
CopyClientToBitmap(BMP, 0, 0, W, H);
GetBitmapCanvas(BMP).Rectangle(10, 460, 104, 472);
SaveBitmap(BMP, 'test1.png');

Johura

2010-01-10 21:09:40

From: Simtoon
  ActivateClient;
GetClientDimensions(W, H);
BMP := BitmapFromString(W, H, '');
CopyClientToBitmap(BMP, 0, 0, W, H);
GetBitmapCanvas(BMP).Rectangle(10, 460, 104, 472);
SaveBitmap(BMP, 'test1.png');



Thanks! :thumbsup:

Camaro'

2010-01-10 21:11:14

From: Johura
Thanks! :thumbsup:


Cant wait for your tutorial!:)

Johura

2010-01-10 21:12:55

Does anyone know how to actually convert the bmp to a jpg using only SCAR? I can do it in php but I want to keep as much of the code as possible in SCAR.

Simtoon

2010-01-10 21:18:24

From: Johura
Does anyone know how to actually convert the bmp to a jpg using only SCAR? I can do it in php but I want to keep as much of the code as possible in SCAR.


well SaveBitmap(BMP, 'test.jpg');
that but the only problem the file size is still big

Johura

2010-01-10 21:22:08

That only changes the extension, it dosn't actually 'convert' the image so the file stays larger > 1mb.

Camaro'

2010-01-10 21:35:45

Are you taking the screenshot of your desktop using php or scar?

Awkwardsaw

2010-01-10 21:38:59

probobly scar

Camaro'

2010-01-10 21:42:05

From: Awkwardsaw
probobly scar


How does he get the image to his server?

Edit: Nevermind, i forgot , he is hosting it on his computer.

Johura

2010-01-10 21:42:19

Right now its doing it with VB6 but i'm switching over to SCAR once I work out the bmp/jpg conversion.

Simtoon

2010-01-10 21:52:41

[QUOTE=Camaro';674006]How does he get the image to his server?

Edit: Nevermind, i forgot , he is hosting it on his computer.[/QUOTE]

You can use a file upload thing ill test it out later

Johura

2010-01-10 21:54:48

From: Simtoon
You can use a file upload thing ill test it out later


It wouldn't be to hard to get SCAR to upload the image to a 3rd party server, would it? :S I might play around with the web plugin (can't remember what it is called).

Timer

2010-01-10 21:57:23

From: Johura
It wouldn't be to hard to get SCAR to upload the image to a 3rd party server, would it? :S I might play around with the web plugin (can't remember what it is called).


Not hard at all. ;)

Camaro'

2010-01-10 22:04:01

Could someone make some scar code that will do so?


OR an example?

Btw, you could just run smart with something over the username. Like put a small window over the username on the computer your botting on. Solves the problem , no?

senrath

2010-01-10 22:14:45

[QUOTE=Camaro';674015]Could someone make some scar code that will do so?


OR an example?

Btw, you could just run smart with something over the username. Like put a small window over the username on the computer your botting on. Solves the problem , no?[/QUOTE]

Nope. Taking a screenshot of SMART using SCAR pulls directly from the client. It's why you can do it even when SMART is minimized.

Johura

2010-01-10 22:20:06

From: senrath
Nope. Taking a screenshot of SMART using SCAR pulls directly from the client. It's why you can do it even when SMART is minimized.


Correct, but simtoon's code (above) fixes that problem.

Simtoon

2010-01-10 22:36:43

I'm going to start working on it now. Tho GD isnt working for me now.

bbri06

2010-01-10 22:54:37

On the same level: I thought of making a script that send me an email or a SMS/MMS to signal progress or faults :)


WoW glider actually does something like that. You can set it to SMS you when a certain event occurs and can actually instruct the bot by SMSing back, it's really cool actually. I believe you can actually have conversations with people in WoW by SMS and glider.

Johura

2010-01-10 23:04:54

From: bbri06
WoW glider actually does something like that. You can set it to SMS you when a certain event occurs and can actually instruct the bot by SMSing back, it's really cool actually. I believe you can actually have conversations with people in WoW by SMS and glider.


Do you need to pay for the sms you recieve?

bbri06

2010-01-10 23:14:27

Not sure, probably.

Rick

2010-01-10 23:40:12

From: Johura
Does anyone know how to actually convert the bmp to a jpg using only SCAR? I can do it in php but I want to keep as much of the code as possible in SCAR.


http://www.villavu.com/forum/showthread.php?p=674038#post674038

Johura

2010-01-10 23:57:22

From: r!ch!e
http://www.villavu.com/forum/showthread.php?p=674038#post674038


Thanks!! +rep


Edit:

This is what I have so far:


const
blockcharname = true;
blocklogname = true;
blockip = true;

var
W, H : integer;
BMP : integer;

begin
ActivateClient;
GetClientDimensions(W, H);
BMP := BitmapFromString(W, H, '');
CopyClientToBitmap(BMP, 0, 0, W, H);

if blockcharname = true then
GetBitmapCanvas(BMP).Rectangle(8, 460, 156, 475);

if blocklogname = true then
GetBitmapCanvas(BMP).Rectangle(311, 269, 452, 284);

if blockip = true then
GetBitmapCanvas(BMP).Rectangle(433, 95, 663, 110);

SaveBitmap(BMP, ScriptPath + 'test1.bmp');
FreeBitmap(BMP);
//BMPtoJPG('test1.bmp', 'test.jpg');
end.

I will finish it off when I get back from work.

Mjordan

2010-01-11 13:44:26

Wow thats pretty darn cool. Good job man.

Main

2010-01-11 16:50:02

Not working:(

Floor66

2010-01-12 07:25:24

You should use PHP to check if SCAR is running (e.g; if the image is/isnt broken) so you don't get the refreshes on an empty page with a broken image :p