SRL Archive - Help

FFCFoo Needs Help Thread!


ffcfoo

2010-06-22 00:08:47

Hello, Since I need help with alot of scripting and other stuff I don't want to keep posting threads about them. I will keep posting things that I need help with or need to understand, I am counting on the forum to help me out with my noobie scripting!

Okay first thing, Is there some kind of code to be able for the script to type in things. So first it clicks on a couple of things when it reaches to a certain spot I want it to type some things, I know how to make it click and everything but I do not know how to make the script type things then press enter or if SCAR is not able to press enter then I will just have it click something. Thank You For Your Help!

sirlaughsalot

2010-06-22 00:14:11

Use Simba also

TypeSend('');

ffcfoo

2010-06-22 00:18:10

From: sirlaughsalot
Use Simba also

TypeSend('');


I thought simba was alot different from scar in coding ways.

Frement

2010-06-22 00:26:32

Only some minor differences.

ffcfoo

2010-06-22 00:28:32

From: Frement
Only some minor differences.


Well every time I try to run my script it give me an error! Here is my simple little script:


program click;

procedure Click;
begin
wait(5000)
ClickMouse(467, 914, True);
wait(5000)
ClickMouse(309, 344, True);
end;

begin
Click;
end.

Error:
[Error] (7:28): Type mismatch at line 6
Compiling failed.

EDIT: Nvm I fixed the problem. I am now using simba.

EDIT:
From: sirlaughsalot
Use Simba also

TypeSend('');


That does not work:
Unknown identifier 'TypeSend'


EDIT: Once again I figured it out xD

masterBB

2010-06-22 05:01:47

Nice to see you figured out most of it. But do you have a certain goal in your mind? Like a script with purpose?

Camaro'

2010-06-22 10:55:53

In a runescape script don't ever use ClickMouse or MoveMouse, try using SRL'S MMouse, or Mouse

NCDS

2010-06-22 13:37:27

[QUOTE=Camaro';719105]In a runescape script don't ever use ClickMouse or MoveMouse, try using SRL'S MMouse, or Mouse


{*******************************************************************************
procedure MMouse(x, y, rx, ry: integer);
By: Benland100
Laptop Movement by Hobbit with help from nielsie95!
Description: Moves the mouse.
*******************************************************************************}

{*******************************************************************************
procedure Mouse(mousex, mousey, ranx, rany: Integer; left: Boolean);
By: Mutant Squirrle, with a small fix by hy71194
Description: Moves then clicks mouse.
*******************************************************************************}

ffcfoo

2010-06-22 15:10:53

From: NCDS

{*******************************************************************************
procedure MMouse(x, y, rx, ry: integer);
By: Benland100
Laptop Movement by Hobbit with help from nielsie95!
Description: Moves the mouse.
*******************************************************************************}

{*******************************************************************************
procedure Mouse(mousex, mousey, ranx, rany: Integer; left: Boolean);
By: Mutant Squirrle, with a small fix by hy71194
Description: Moves then clicks mouse.
*******************************************************************************}


Where can I find all the SRL functions and stuff like scar and simba has.

Frement

2010-06-22 15:11:55

From: ffcfoo
Where can I find all the SRL functions and stuff like scar and simba has.


Exploring the SRL folder in includes.

ffcfoo

2010-06-22 15:16:01

From: Frement
Exploring the SRL folder in includes.


Lol, Sounds like I got a lot of reading to do.

Awkwardsaw

2010-06-22 15:37:43

use http://freddy1990.com/srlmanual/

it might be easier to read through :)

e: its a little out dated, i think the dev revision has more procedures and what not

ffcfoo

2010-06-28 01:05:25

Okay, So this is not for Runescape. Entirely different! So I have Steam If you know what that is, when some one messages me I want Scar to react to what I put. But I know how to do this but I just want to know if there is some kind of code that can detect when someone messages me and it reads what they say and if it matches one of the sentences I put in the code I want it to give it an answer that I inputted in the code. But if the sentence that they write does not match anything I have written for answers then it returns with 1 message and then it waits and it does it all over again. Sounds simple but I do not know how Scar can detect the sentence.

i luffs yeww

2010-06-28 01:14:37

Hard to do. I would suggest something else (like C++ or something).

Using Pascal/Delphi might not be possible for this. I know that there have been attempts for years, but the way that most games use the mouse is quite odd. Sorry. :<

Also, PM me Steam name? :)

Oh, I just read "Steam" and assumed it was for a game.

Umm.. You'd have to get some nice OCR. :/ It wouldn't be the easiest thing to do.

ffcfoo

2010-06-28 01:19:42

From: i luffs yeww
Hard to do. I would suggest something else (like C++ or something).

Using Pascal/Delphi might not be possible for this. I know that there have been attempts for years, but the way that most games use the mouse is quite odd. Sorry. :<

Also, PM me Steam name? :)

Oh, I just read "Steam" and assumed it was for a game.

Umm.. You'd have to get some nice OCR. :/ It wouldn't be the easiest thing to do.


What is OCR? Also, I thought I saw in this one script where it auto typed when a person said your name?

PM'D You my steam! This doesn't mean I still don't need help! xD

i luffs yeww

2010-06-28 01:31:46

OCR is reading text and what not (to put it quite simply). You would have to get the font from Steam, like we do with every character from RuneScape to be able to read it, and then save each character into a folder and load the fonts up to use this (unless there's a way to intercept messages, then it'd be quite easy). I think there is a tutorial about making your own fonts somewhere..

ffcfoo

2010-06-28 01:34:50

From: i luffs yeww
OCR is reading text and what not (to put it quite simply). You would have to get the font from Steam, like we do with every character from RuneScape to be able to read it, and then save each character into a folder and load the fonts up to use this (unless there's a way to intercept messages, then it'd be quite easy). I think there is a tutorial about making your own fonts somewhere..


Alright, I will just try to figure this stuff out.

Frement

2010-06-28 01:35:16

Or, read about extensions for Simba and make a packet sniffer?

i luffs yeww

2010-06-28 01:53:30

^ I was gonna suggest that but I dunno. I think it'd make things quite easy and very sexy. :p

Frement

2010-06-28 01:56:26

A general packet sniffer where you can select what sockets to sniff would be very good, I would know many usages for this in many other projects also.

i luffs yeww

2010-06-28 02:07:26

^ :) Maybe you could make it? Didn't Cazax make an extension for Simba for proxy support? :o Maybe he could.

Frement

2010-06-28 02:09:11

Would require some work, and I'm not quite sure this could be done cross-platform that easily. I'm not even sure how extensions work, I haven't had the time to study them just yet, I haven't had any need for them just yet.

i luffs yeww

2010-06-28 02:14:18

Cross-platform compatibility wouldn't really be a priority. Simba isn't even cross-platform compatible, so there's no reason this would need to be.

Frement

2010-06-28 02:20:32

Still, it needs some kind of include for the sockets and stuff. I don't think MML has capabilities for such actions. I mean, one could use C++ to make a plugin, and then make an extension that uses the plugin and creates a nice interface for studying the packets.

ffcfoo

2010-06-28 15:42:50

From: Frement
Still, it needs some kind of include for the sockets and stuff. I don't think MML has capabilities for such actions. I mean, one could use C++ to make a plugin, and then make an extension that uses the plugin and creates a nice interface for studying the packets.


GAHH! OVERLOAD! My Head Hurts. If I need any help I am going to just reply alright? Forget this crap. I will find something else to script.