Log in

View Full Version : Function Keys



YoHoJo
11-11-2011, 01:56 AM
How do I make SRL push the function keys bro?

i luffs yeww
11-11-2011, 02:17 AM
KeyDown(VK_F1);?

YoHoJo
11-11-2011, 02:20 AM
Any ones in SRL that do it humanlike?
Or should I just
KeyDown(VK_F1)
Wait(How Long Do Humans Hold?);
KeyDUp(VK_F1);

How long should I make the wait?

TomTuff
11-11-2011, 02:21 AM
Any ones in SRL that do it humanlike?
Or should I just
KeyDown(VK_F1)
Wait(How Long Do Humans Hold?);
KeyDUp(VK_F1);

How long should I make the wait?

For the length, I'd look at SendKeysEx and see what the wait time is, and use about 1/2 - 2/3 of that length. But yeah, pretty much like that.

YoHoJo
11-11-2011, 02:22 AM
TomTuff, I was going to use same wait as SendKeys, but yea thanks that works.

YoHoJo
11-11-2011, 02:34 AM
Can't find SendKeysEx... :/
Anyone suggest a wait I should put between KeyDown and KeyUp?

KingKong
11-11-2011, 02:50 AM
20-30 ms?

YoHoJo
11-11-2011, 02:58 AM
I found the TypeSend function, all good now, thanks!