SRL Archive - Help and Support

How do i hold


Timer

2007-12-29 00:21:10

how do i press and then releace the alt key in scar, yer i searched, and looked in the wiki…

-thanks

R0b0t1

2007-12-29 00:23:52


program Lawl;

begin
KeyDown(Vk_Alt);
Wait(Time);
KeyUp(Vk_Alt);
end.

Timer

2007-12-29 00:25:45

Nope…lol

Failed when compiling
Line 6: [Error] (6:9): Unknown identifier 'Vk_Alt' in script

Harry

2007-12-29 00:27:50

You can also use

KeyDown(82);
wait(Time);
KeyUp(82);

Key 82 is Alt I think.

Timer

2007-12-29 00:29:58

82 = r. =[

Harry

2007-12-29 00:49:56

Rofl, I was just copying it from my ShupDownPC procedure x( Experiment with it :)

procedure ShutDownPC;
begin
KeyDown(92);
wait(200);
KeyDown(82);
wait(200);
KeyUp(82);
wait(200);
KeyUp(92);
wait(200);
Sendkeys('shutdown -s -f -t 00'+chr(13));
end;

I actually think the SCAR manual has a list of key codes.. Open SCAR, hit F1.

Timer

2007-12-29 00:55:48

how do i do alt!?!?!?!?!!? i just wanna know.. -.-

Miitchyy

2007-12-29 01:25:12

18

bullzeye95

2007-12-29 01:25:36

It's 18, or VK_Menu (not VK_Alt, r0b0t :p)

EDIT: Ahh, beaten.

Miitchyy

2007-12-29 07:32:33

Woah o_O
Same minute and everything xD
Yours is more informative though xD

procedure SendKeyModifier(Modifier: Byte; Key: Char);
begin
KeyDown(Modifier);
KeyDown(GetKeyCode(Key));
Wait(35 + Random(50)); //Insert correct Typing time xD
KeyUp(GetKeyCode(Key));
KeyUp(Modifier);
end;

begin
SendKeyModifier(VK_MENU, 'F');
end.

n3ss3s

2007-12-29 09:34:49

(not VK_Alt, n3ss )


wth? It was r0b0t who said it lol…
*scary*

R0b0t1

2007-12-29 12:33:33

Meh. I'm to used to C.

bullzeye95

2007-12-29 12:35:52

From: n3ss3s
wth? It was r0b0t who said it lol…
*scary*


I know the perfect smiley: :duh:

footballjds

2008-01-10 11:19:02

here this ASCII list ain't mine but i have it, its very helpful, i dunno who made it but i didn't.
its got a list of every freaking key =p

Miitchyy

2008-01-12 03:53:25

That's KyleGut's list, It's the one I use :P

Markus

2008-01-12 05:22:28

From: R0b0t1
Meh. I'm to used to C.


Constants are in the Windows API, VK_ALT doesn't exist in it, so C/Scar, no difference.