View Full Version : FFCFoo Needs Help Thread!
ffcfoo
06-22-2010, 04:08 AM
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
06-22-2010, 04:14 AM
Use Simba also
TypeSend('');
ffcfoo
06-22-2010, 04:18 AM
Use Simba also
TypeSend('');
I thought simba was alot different from scar in coding ways.
Frement
06-22-2010, 04:26 AM
Only some minor differences.
ffcfoo
06-22-2010, 04:28 AM
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:
Use Simba also
TypeSend('');
That does not work:
Unknown identifier 'TypeSend'
EDIT: Once again I figured it out xD
masterBB
06-22-2010, 09:01 AM
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'
06-22-2010, 02:55 PM
In a runescape script don't ever use ClickMouse or MoveMouse, try using SRL'S MMouse, or Mouse
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
06-22-2010, 07:10 PM
{************************************************* ******************************
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
06-22-2010, 07:11 PM
Where can I find all the SRL functions and stuff like scar and simba has.
Exploring the SRL folder in includes.
ffcfoo
06-22-2010, 07:16 PM
Exploring the SRL folder in includes.
Lol, Sounds like I got a lot of reading to do.
Awkwardsaw
06-22-2010, 07:37 PM
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
06-28-2010, 05:05 AM
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
06-28-2010, 05:14 AM
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
06-28-2010, 05:19 AM
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
06-28-2010, 05:31 AM
OCR (http://en.wikipedia.org/wiki/Optical_character_recognition) 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
06-28-2010, 05:34 AM
OCR (http://en.wikipedia.org/wiki/Optical_character_recognition) 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
06-28-2010, 05:35 AM
Or, read about extensions for Simba and make a packet sniffer?
i luffs yeww
06-28-2010, 05:53 AM
^ I was gonna suggest that but I dunno. I think it'd make things quite easy and very sexy. :p
Frement
06-28-2010, 05:56 AM
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
06-28-2010, 06:07 AM
^ :) Maybe you could make it? Didn't Cazax make an extension for Simba for proxy support? :o Maybe he could.
Frement
06-28-2010, 06:09 AM
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
06-28-2010, 06:14 AM
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
06-28-2010, 06:20 AM
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
06-28-2010, 07:42 PM
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.
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.