SRL Archive - Bugs

[Simba][SMART][SRL][CORE] -Bug: KeyDown(13) KeyUp(13) PressKey(13) dosn't press enter


Zorgatone

2013-02-06 11:11:54

Reposted from http://villavu.com/forum/showthread.php?t=96176 because I think this section fits better the issue.

program new;
{$DEFINE SMART8}
{$i srl/srl.simba}
begin
SetupSRL;
wait(1500);

KeyDown(13); // Presses the 'ENTER' key. (Does not work).
wait(RandomRange(50, 100));
KeyUp(13);
wait(1500);
end.

This code doesn't press ENTER on the keyboard… I've tried to confirm the amount of items to sell at the G.E. and it didn't work. Why?

EDIT: I think this is not a SRL issue.. Is it Simba?

Sjoe

2013-02-06 11:18:15

Try SendKeyEx

Ian

2013-02-06 12:09:37

I'm interested to see the cause of this, someone reported that it wasn't working in one of my scripts, but it worked fine for everyone else :/

NKN

2013-02-06 16:09:28


TypeByte(VK_ENTER);

Try this

Zorgatone

2013-02-07 08:12:08

From: NKN

TypeByte(VK_ENTER);

Try this


Yes this works.. :D

riwu

2013-02-07 08:19:49

 
{$IFDEF SMART}
If (K = 13) then
K:= 10;
{$ENDIF}
So apparently if SMART is defined enter key == 10 rather than 13..