SRL Archive - Other Scripts

[Help]


Failure

2010-12-31 01:30:21

Well I'm making a Script, however it works all fine. But I need Escape to logout here's the problem..

//Logout

SendKeys(Chr(27));
Wait(700);
SendKeys(Chr(27));
Wait(50);
MoveMousesmooth(959, 522);
Wait(100);
ClickMouse(959, 522, True);
Wait(15000);
Until False;
end.

If you check the 3.22 Divi manual it says 27 Dec represents Escape but it doesn't work for me. So what does represents Escape cause I need it to logout. If there is anyother method please let me know, cause in the game you only can logout via Escape. Thanks :)

Frement

2010-12-31 01:33:29

You should try KeyDown(27); Wait(200); KeyUp(27);

I don't even think you can send "Escape" with SendKeys().

Failure

2010-12-31 02:00:37

From: Frement
You should try KeyDown(27); Wait(200); KeyUp(27);

I don't even think you can send "Escape" with SendKeys().


Thanks it worked you saved me! :)
Well I'm not that advanced in coding, the SendKeys(Chr(32)); < Spacebar
Worked so I thought also for Escape… :duh:

Frement

2010-12-31 02:14:33

SendKeys only works for characters that you can "type".

Failure

2010-12-31 02:23:34

From: Frement
SendKeys only works for characters that you can "type".


Why does Spacebar works then? Thanks for the info :)

Frement

2010-12-31 02:31:55

Spacebar is a type-able character.

TomTuff

2010-12-31 02:46:59

TypeByte(VK_SOMETHING)