SRL Archive - OSR Help

keys pressed


grats

2011-02-04 18:37:51

F1, F2, F3, F4, F5 are all hotkeys in runescape

can these be input in a script to press those buttons? they do things like open your bag.. etc (nothing too amazing)

I'd like to try a random script to either click the bag OR press the function key to open the bag.. to kind of randomize it..

or is this created somewhere?

I don't really know what I'm doing so any help is appreciated.. I have steam, skype, aim, msn, ventrilo, can get irc but the tutorial I saw is an outdated one I guess


Also this is one of the only tutorials that are sticked throughout this whole site I haven't read:
http://villavu.com/forum/showthread.php?t=59400
Currently reading it.. have to pick someone up at the airport though but I'll be back soon

if anyone can give tips for NOOBS, much appreciated.. I learn a lot better by seeing something done and learning how that works, thanks
thanks

**BANNED The Man

2011-02-04 18:45:25

Get on msn and I will help you make it :)

-Boom

Janilabo

2011-02-04 18:53:11

Hello grats,

Here is couple ways:

begin
SendKeysVB('{F1}', False);
KeyDown(112); // F1 (113 = F2, 114 = F3, 115 = F4.. ETC.
KeyUp(112); // F1 (113 = F2, 114 = F3, 115 = F4.. ETC.
end.

Gu3st...

2011-02-04 19:10:47

KeyDown(VK_F1);
KeyUp(VK_F1);

pyroryan

2011-02-04 19:29:34

From: Zyt3x
KeyDown(VK_F1);
KeyUp(VK_F1);


And those are known as virtual keys if the OP wants more information on them.

grats

2011-02-04 21:28:09

Thanks everyone with those keydown / keyup "virtual keys"


From: Dynamite
Get on msn and I will help you make it :)

-Boom


I'm on msn like 24/7 I added you twice it said it had errors not sure what's wrong






edit:

where are the functions for the antibans for stuff like clicking your bag.. and the right clicking and "examine" (I think it's called)

for srl or reflection whichever has them

cycrosism

2011-02-04 23:15:53

From: Zyt3x
KeyDown(VK_F1);
KeyUp(VK_F1);


You should add like a wait(25+random(25)); in the middle of that

i luffs yeww

2011-02-04 23:19:20

Check Antiban.scar in /core/.

grats

2011-02-04 23:41:52

From: i luffs yeww
Check Antiban.scar in /core/.


Thanks very much!

From: cycrosism
You should add like a wait(25+random(25)); in the middle of that


Yes I was learning from a script which made two constants

and then used 1 for the 25 and the other for the (25)

so people could change, but should I do it this way so it isn't option to change how much it does it?

i luffs yeww

2011-02-05 01:30:33

It shouldn't be an option, really. It's based on typing speeds and how long it takes for someone to push a key down and release it. Check Text.scar (also in /core/) if you wanna see how TypeSend types, if you want it to be pretty realistic. It shouldn't matter too much though. You could also time yourself, if you wanna do some scripting to do some scripting. ;)

(Hint, use a while loop.)

Also, this isn't about reflection, as suggested in the title. :)

grats

2011-02-05 01:57:51

From: i luffs yeww
It shouldn't be an option, really. It's based on typing speeds and how long it takes for someone to push a key down and release it. Check Text.scar (also in /core/) if you wanna see how TypeSend types, if you want it to be pretty realistic. It shouldn't matter too much though. You could also time yourself, if you wanna do some scripting to do some scripting. ;)

(Hint, use a while loop.)

Also, this isn't about reflection, as suggested in the title. :)


I had multiple questions, I thought one was reflection :P


Yea I got the wait time spot confused, I meant put a wait time in between when it clicks a bag / presses the button

my bad


edit: I will be adding more questions to the thread though so eventually there will be plenty of reflection questions I assume

i luffs yeww

2011-02-05 06:00:28

I can help you whenever I'm on. :) msn works best.

[email]panic._@live.com[/email].

But the forums are a nice place to ask things that aren't just a simple "what does out of range mean" etc. (simple things that have pretty simple answers, or that have been answered before on the forums). Always good to use the search button as well. ;)

Gu3st...

2011-02-05 08:14:31

From: cycrosism
You should add like a wait(25+random(25)); in the middle of that
I were just telling him how to do it.

grats

2011-02-07 02:13:26

So to have the antiban.scar procedures work within a script all I have to do is have the srl included
{$i SRL\SRL.scar}

and then do like this

begin
case random(2) of
0 : Begin
BoredHuman;
end;

1 : Begin
RandomRClick;
end;
end;
end.


or is there a different / better way to do that?



procedure AntiBan;
begin
case Random(5) of
0 : begin
KeyDown(VK_a);
wait(25+random(55));
KeyUp(VK_a);
end;
1 : begin
KeyDown(VK_b);
wait(25+random(55));
KeyUp(VK_b);
end;
2 : begin
KeyDown(VK_c);
wait(25+random(55));
KeyUp(VK_c);
end;
3 : begin
KeyDown(VK_d);
wait(25+random(55));
KeyUp(VK_d);
end;
4 : begin
KeyDown(VK_e);
wait(25+random(55));
KeyUp(VK_e);
end;
end;
end;


procedure RandomAntiBan;
begin
wait(120000+random(180000));
AntiBan;
Writeln('### Anti Ban in effect! ###');
end;


begin
RandomAntiBan;
end.


This is what I have, what would be the best way to add in the "BoredHuman" (which rotates the camera right?)
and
"RandomRClick"

do I need to have more of the antiban for stuff to work?

i luffs yeww

2011-02-07 02:27:48

BoredHuman rotates the camera and right clicks, iirc.

Have some cases in the antiban simply wait, have some do BoredHuman, have some only rotate, have some only click, etc.

And it also depends on what you're doing. For example, if you're mining ess, you may want to do more antiban like random right clicking when you're mining, and move the camera around and etc. but not when you're walking, but if you're doing something like thief, you may not want as much antiban that will mess up your timing/seeing stuff.

Very poor examples, but you should get the point. And, a very important thing to think about is.. what do you do? ;) What do you do when you play legit to get through long periods of time.

Best of luck! ^^

grats

2011-02-07 02:34:40

From: i luffs yeww
BoredHuman rotates the camera and right clicks, iirc.

Have some cases in the antiban simply wait, have some do BoredHuman, have some only rotate, have some only click, etc.

And it also depends on what you're doing. For example, if you're mining ess, you may want to do more antiban like random right clicking when you're mining, and move the camera around and etc. but not when you're walking, but if you're doing something like thief, you may not want as much antiban that will mess up your timing/seeing stuff.

Very poor examples, but you should get the point. And, a very important thing to think about is.. what do you do? ;) What do you do when you play legit to get through long periods of time.

Best of luck! ^^


I was asking how to add them into the script, I'm not sure how I get the timings & the be as human like as possible.. I've averaged 100+ runescape players who play legitly and got a good ratio on using hotkeys vs clicking etc just need to know how I would add boredhuman into the bigger script I have, I'm not sure on the best way to add it

i luffs yeww

2011-02-07 02:43:58

Have it in the antiban procedure as one of the case statements and call antiban when you find appropriate. Not sure what else to say :x

grats

2011-02-07 02:47:58

From: i luffs yeww
Have it in the antiban procedure as one of the case statements and call antiban when you find appropriate. Not sure what else to say :x


Oh ok, well I was debating whether or not to have it there or have it be a totally different antiban on its own and have both running together instead of only 1 every 2-5 minutes having the buttons every 2-5 minutes and having boredhuman / random click every 1-3 minutes or something totally different

i luffs yeww

2011-02-07 02:58:12

One should suffice.

Main

2011-02-07 05:49:47

Is there a way for scar to find which key is entered without iskeydown(x)? What I mean is similar to scanf or cin.get on c/c++?

i luffs yeww

2011-02-07 06:11:16

IT COULD HAPPEN, MAIN. a