SRL Archive - General Botting Help

KeyDown not registering


Teemo

2020-02-17 03:00:07

Just as a disclaimer, I'm incredibly new to Simba and scripting as a whole. I've only been learning it for less than a week so please bear with me.

I've been trying to create a script for PokeMMO. I've figured out most of the functions necessary to make it work but I've been having trouble with emulating key presses. When activating the client the keys simply don't work for whatever reason. I've tested on other applciations and it works perfectly fine. If anyone could explain why that is I'd greatly appreciate it.

begin
repeat
KeyDown (39);
Wait (RandomRange(2000, 3000));
KeyUp (39);
Wait (50);
KeyDown (37);
Wait (RandomRange(2000, 3000));
KeyUp (37);
until FindColorSpiralTolerance (x, y, 13489371, 0, 0, 0, 0, 20);
end

fookinel

2020-02-20 02:59:05

If it works outside the client but not inside then I am guessing the problem could be something to do with the fact that Simba uses virtual clicks rather than hardware clicks. Some games can detect that it is a virtual key press and not a real hardware key press and ban you for it so perhaps they have stopped them from registering in this case.

ogustuce

2020-02-21 12:57:21

try other typing function? SRL has a bunch. Here's a demo:


program new;
{$I srl-6/srl.simba}

begin
activateclient;
typebyte(VK_A);
presskey(VK_A);

keydown(VK_A);
wait(50);
Keyup(VK_A);

typebytewait(VK_A,50); // same as typebyte but has some delay btw key up and down
end.

Also make sure you drag simba green crosshair on the window/client and focus it with activateclient maybe

fookinel

2020-02-22 09:18:22

Cool I didn't know about typebyte and ativateclient. That is good to know but I would be careful with them wait(50)s if they have bot detection. Simba uses "Wait(Trunc(srl.SkewedRand(60,45,180)));" in the presskey procedure which is much less likely to get you banned.

Teemo

2020-02-28 19:26:53

I didn't know about these but I've tested them and it still isn't registering. I was using activate client before and the key presses register in the chatbox. I think they're blocking virtual key presses like fookinel said.