SRL Archive - OSR Help

How do I press a key or type words?


Popcorn

2013-04-05 22:42:01

How do I get Simba to type words? I'm writing a simple script for automating a little webpage with a few buttons and text boxes.

What should the format be like? So far I have,

procedure Target; 
begin
movemouse (409, 535)
clickmouse (409, 535, 1)
presskey (Helllooo;)
end;

King

2013-04-05 22:48:59

From: Popcorn
How do I get Simba to type words? I'm writing a simple script for automating a little webpage with a few buttons and text boxes.

What should the format be like? So far I have,

procedure Target; 
begin
MMouse (409, 535, 5,5); // added correct format/randomization
clickmouse (true); //dont need to move twice, just click :P
sendkeys ('Helllooo', 250, 300); //should be in quote marks, and always have a semi-colon after a command is done
end;

Begin
Target;
end.

Edited for you(:

Sjoe

2013-04-05 22:49:44

try Sendkeys or typesend(if u want it to hit enter after typing the string)

edit: your parameters are wrong srlking sendkeys('helloo', 300, 300); eg.

King

2013-04-05 22:50:39

From: Sjoekeloe
try Sendkeys


:ninja:'d (; Im proud of me :D! Usually you :ninja: me

Fixed as well, was typing quick

Sjoe

2013-04-05 22:55:29

From: SRLKing
:ninja:'d (; Im proud of me :D! Usually you :ninja: me

Fixed as well, was typing quick


Nice :) , I don't like being ninja'd :(

King

2013-04-05 22:56:18

From: Sjoekeloe
Nice :) , I don't like being ninja'd :(


Ill let you have the next one…maybe(;

Popcorn

2013-04-05 22:57:39

From: SRLKing
Edited for you(:


I get this:

[Error] (8:22): Invalid number of parameters at line 7
Compiling failed.

Sjoe

2013-04-05 22:58:09

From: SRLKing
Ill let you have the next one…maybe(;


Game on ;) Don't mess wtih karma baby.

Popcorn

2013-04-05 23:03:00

Can anyone help please?

King

2013-04-05 23:03:52

From: Popcorn
I get this:


procedure Target;
begin
MMouse (409, 535, 5,5); // added correct format/randomization
clickmouse2 (true); //dont need to move twice, just click :P
sendkeys ('Helllooo', 250, 300); //should be in quote marks, and always have a semi-colon after a command is done
end;

Use this instead, forgot to make it clickmouse2

Popcorn

2013-04-05 23:12:29

From: SRLKing
procedure Target;
begin
MMouse (409, 535, 5,5); // added correct format/randomization
clickmouse2 (true); //dont need to move twice, just click :P
sendkeys ('Helllooo', 250, 300); //should be in quote marks, and always have a semi-colon after a command is done
end;

Use this instead, forgot to make it clickmouse2


Thanks, edited the mouse commands though because it made the mouse moves like a turtle.

Is there any way for it to type faster?

And what do the numbers in the sendkey line mean?

King

2013-04-05 23:13:37

From: Popcorn
Thanks, edited the mouse commands though because it made the mouse moves like a turtle.

Is there any way for it to type faster?

And what do the numbers in the sendkey line mean?


Mili seconds between letters sent are what they mean, change them to like 45, 50 and then use

MouseSpeed := 20;

to up the mouse speed

Popcorn

2013-04-05 23:25:09

From: SRLKing
Mili seconds between letters sent are what they mean, change them to like 45, 50 and then use

MouseSpeed := 20;

to up the mouse speed


I find 1-2 works best, it's almost instant! After all, it's not like they're going to scan mouse clicks on a small website with less than 625 users, are they?

Thanks for all the help, got it working perfectly.

King

2013-04-05 23:27:16

From: Popcorn
I find 1-2 works best, it's almost instant! After all, it's not like they're going to scan mouse clicks on a small website with less than 625 users, are they?

Thanks for all the help, got it working perfectly.


No problem, and no they wont most likely…

Popcorn

2013-04-05 23:30:42

From: SRLKing
No problem, and no they wont most likely…


Is there any way to repeat a script?

I got this for my end, I read something on a tutorial about repeat until, but I can't get it to work.

begin
Target;
end.

King

2013-04-05 23:38:04

From: Popcorn
Is there any way to repeat a script?

I got this for my end, I read something on a tutorial about repeat until, but I can't get it to work.


 begin
repeat
target;
until(false)://Will repeat forever or until you stop, you can make other conditions as well

Popcorn

2013-04-06 00:57:43

From: SRLKing
 begin
repeat
target;
until(false)://Will repeat forever or until you stop, you can make other conditions as well


Your help is much appreciated.

King

2013-04-07 11:29:36

From: Popcorn
Your help is much appreciated.


No problem, feel free to pm with any other questions :P