SRL Archive - Help and Support

push functon key


huh26010

2006-03-26 14:02:16

to push down a functon key would it be

KeyDown(alt,byte); ?

keyDown(tab,byte);?

WhiteShadow

2006-03-26 15:15:35

C:/Programs Files/Scar 2.03/procedureparams.txt

;)

XxKanexX

2006-03-26 20:33:05

From: huh26010
to push down a functon key would it be

KeyDown(alt,byte); ?

keyDown(tab,byte);?

You could use SendKeysVB or KeyDown..

I'll post what i know:

SendKeysVB

SendKeysVB('+', true); - SHIFT
SendKeysVB('~', true); - ENTER
SendKeysVB('^', true); - CONTROL

KeyDown:

KeyDown(VK_Shift) - SHIFT
KeyDown(VK_Control) - CONTROL
KeyDown(VK_Alt) - ALT

Make sure after KeyDown you put, KeyUp(…) ;)

huh26010

2006-03-26 20:45:45

ty that is what i needed kane

edit how do u find out the code for the key

SendKeysVB('+', true); -shift

how do u find out '+' is shift?

i need to know the code for alt or would it be 'VK_Alt'

XxKanexX

2006-03-26 21:00:03

I think it's, VK_ALT.

And i use to have a site for SendKeysVB, but i lost it when i wiped my computer ;)

huh26010

2006-03-26 21:06:36

ok 1 more question can u set a certain amount of time you want to hold the key down and to push down a key its KeyDown(key);

example KeyDown(a)

right?

XxKanexX

2006-03-26 21:10:22


KeyDown(getkeycode('a'));
Wait(1000);
KeyUp(getkeycode('a'));

huh26010

2006-03-26 21:14:34

ty my scripts works now ty

puj

2006-03-31 08:02:33

This is what i found after a quick search : http://cwashington.netreach.net/main/library/sendkeys.html

tarajunky

2006-05-16 01:38:50

Yes, I know this thread is ancient history, but I found another useful page… Note that the Alt key is not VK_ALT, it is VK_MENU.

http://www.daniweb.com/techtalkforums/thread38122.html