SRL Archive - Help

Send Multiple Keys at once?


Paradoxium

2012-05-22 09:34:43

Is there a way to send multiple keys at once?

riwu

2012-05-22 09:50:55

Try
KeyDown(17);  //hold the control
KeyDown(16); //hold the shift
KeyDown(53); //hold the "s"
wait(randomrange(50,100));
KeyUp(17);
KeyUp(16);
KeyUp(53);
This would successfully send a "control+shift+s" then releasing them. Change the parameters for it to press other keys.

Paradoxium

2012-05-22 10:12:57

oh truee good looks thanks!

Gu3st...

2012-05-22 10:17:42

It's easier to use the built-in constants


VK_CONTROL is the control key
VK_SHIFT is the shift key
VK_E is the e key

and so on ;)