SRL Archive - SRL Bugs

TypeSendEx Problem


smurg

2012-02-15 00:14:59


procedure TypeSendEx(Text: string; PressEnter: Boolean);
var
I: Integer;
begin
for i := 1 to Length(Text) do
begin
{$IFDEF SIMBAMAJOR980}
SendKeys(Text[i], 40 + Random(40)); // Invalid number of parameters here
{$ELSE}
SendKeys(Text[i], 30 + Random(30), 30 + Random(30));
{$ENDIF}
Wait(40 + Random(40));
end;

if (PressEnter) then
TypeByte(VK_RETURN);
end;

Coh3n

2012-02-15 04:33:05

This was fixed shortly after that was committed. It only happened when the script used SMART.

E: Actually, if you have that version of TypeSendEx, you shouldn't get that error. That function was updated after the fix for that error was made.

smurg

2012-02-15 05:04:39

From: Coh3n
This was fixed shortly after that was committed. It only happened when the script used SMART.

E: Actually, if you have that version of TypeSendEx, you shouldn't get that error. That function was updated after the fix for that error was made.


Nah don't worry, I'm just an idiot.

I was using a legacy script that I changed SRL over to .simba but not still had SMART as .scar, and in one of the latest updates, the TypeSend or something changed in SMART.simba.

All good now. resolved.