SRL Archive - General Botting Help

sendkeys help


Runehack123

2013-04-03 08:07:43

okay so I made this script for macro key shortcut using lape interpreter


program new;
begin
repeat
begin
if(IsKeyDown('71')) then //G
SendKeys('W 1 Q R', 5, 5); // W 1 Q R -> 87 49 81 82
Wait(5);
end;
until false
//writeln(IntToStr(GetKeyCode('q')));
end.

but I get error

Exception in Script: Expected variable of type "UInt16", got "AnsiString" at line 5, column 19

i already asked mayaz if this is doable with Simba but it's giving me a hard time
any advice or if there's something better to use for keyboard macro please shoot

Justin

2013-04-03 08:21:06

From: Runehack123
okay so I made this script for macro key shortcut using lape interpreter


program new;
begin
repeat
begin
if(IsKeyDown('71')) then //G
SendKeys('W 1 Q R', 5, 5); // W 1 Q R -> 87 49 81 82
Wait(5);
end;
until false
//writeln(IntToStr(GetKeyCode('q')));
end.

but I get error

Exception in Script: Expected variable of type "UInt16", got "AnsiString" at line 5, column 19

i already asked mayaz if this is doable with Simba but it's giving me a hard time
any advice or if there's something better to use for keyboard macro please shoot


You are using a string when it wants an Int

Change:

       if(IsKeyDown('71')) then //G

to

       if(IsKeyDown(71)) then //G 

Runehack123

2013-04-04 10:16:08

okay so I want to send
Q W E R
when I press the button T. I changed it to T since G is already assigned to something.
this is for LoL League of Legends

its only working in chat now and not ingame which is disappointing
if anyone has experience with LoL macros
and can give me some advice
then
thanks I guess please help ty

xtrapsp

2013-04-04 10:19:24

From: Runehack123
okay so I want to send
Q W E R
when I press the button T. I changed it to T since G is already assigned to something.
this is for LoL League of Legends

its only working in chat now and not ingame which is disappointing
if anyone has experience with LoL macros
and can give me some advice
then
thanks I guess please help ty


Write League of Legends bots in Lua. Check out Bot of Legends.

Runehack123

2013-04-04 10:27:48

l0l bot of legends
lets do thiiiis :3 how did i not see this in google search before??