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.
Code:
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