SRL Archive - OSR Help

Dumb question


Element17

2013-06-06 02:39:50

How do I send 'enter' while using sendkeys in simba? I could Google it to find the number I guess.

Flight

2013-06-06 02:50:51

You could use "TypeByte(VK_ENTER);".

Janilabo

2013-06-06 03:17:50

From: Flight
You could use "TypeByte(VK_ENTER);".
VK_ENTER doesn't exist, keycode 13 is declared as "VK_RETURN" (would be good to have it as VK_ENTER aswell, though!) :p

Couple other ways would be…

1. Using PressKey:

begin
PressKey(VK_RETURN);
end.

2. KeyDown() + KeyUp() combination, with which you can use your own custom wait between the down and up parts:

begin
KeyDown(VK_RETURN);
Wait(35 + Random(40)); // Replace with your own custom wait times..
KeyUp(VK_RETURN);
end.

Sjoe

2013-06-06 03:28:58

From: Janilabo
VK_ENTER doesn't exist, keycode 13 is declared as "VK_RETURN" (would be good to have it as VK_ENTER aswell, though!) :p

Couple other ways would be…

1. Using PressKey:

begin
PressKey(VK_RETURN);
end.

2. KeyDown() + KeyUp() combination, with which you can use your own custom wait between the down and up parts:

begin
KeyDown(VK_RETURN);
Wait(35 + Random(40)); // Replace with your own custom wait times..
KeyUp(VK_RETURN);
end.


TypeSendEx uses TypeByte(VK_ENTER) :p

Janilabo

2013-06-06 04:08:11

From: Sjoe
TypeSendEx uses TypeByte(VK_ENTER) :p
Ahhhh! Are those in SRL include (I don't use Simba with SRL include)?
Because, Simba itself doesn't seem to have TypeSendEx(), TypeByte() or VK_ENTER… O_o

Element17

2013-06-06 15:03:55

From: Flight
You could use "TypeByte(VK_ENTER);".



Thanks for all the help guys! Flight's worked lol.