Wizzup?
2009-11-08 12:09:51
Keyboard input is now in the latest Mufasa.
KeyDown(), KeyUp(), KeyPress() and SendKeys.
SendKeys accepts chars from A..z, and will only send lowercase chars.
Sending stuff (with sendkeys) like uppercase letters by pressing shift, is not added. (SCAR doesn't have it either; SRL handles it.)
KeyUp/Down/Press take a VK (Virtual Key). These haven't been exported to PS yet, so you'll have to look then up manually in lcltype… ;)
Silent Keyboard Input will come once I port xdotool to pascal, or turn it into a library that we can use.
Nava2
2009-11-08 12:55:23
Kinda on topic, why do we want silent stuff.. wasn't it bannable?
YoHoJo
2009-11-08 19:47:44
From: Nava2
Touche.
Touché Touché (One to show you how to do it right, and one to Touché you :spot:)
Markus
2009-11-09 12:31:33
SCAR actually sends uppercase letters with SendKeys fyi, but in a nasty way probably :)
Wizzup?
2009-11-09 12:54:42
From: Markus
SCAR actually sends uppercase letters with SendKeys fyi, but in a nasty way probably :)
Oh… It isn't hard to add that. I'll add it.
nielsie95
2009-11-09 13:06:59
SendKeys supports a lot more characters (!@#$%…)
Wizzup?
2009-11-09 13:16:24
From: nielsie95
SendKeys supports a lot more characters (!@#$%…)
OK. I guess I can add those too… But then I'd indeed have the different keyboard layout problem.
Narcle
2009-11-09 14:31:25
Can it send F keys ie f1, f2 etc.? I always had weird problems with them in scar/smart sending other letters with them.
(with the F keys you can switch game tabs)
Wizzup?
2009-11-09 14:49:29
From: Narcle
Can it send F keys ie f1, f2 etc.? I always had weird problems with them in scar/smart sending other letters with them.
(with the F keys you can switch game tabs)
It can, if you pass the right VK_F* value. They aren't exported yet, as I've stated before, but it should work. (112 = F1, 113 = F2…)
PressKey(112);
The Claw
2009-11-09 22:28:33
From: Wizzup?
It can, if you pass the right VK_F* value. They aren't exported yet, as I've stated before, but it should work. (112 = F1, 113 = F2…)
PressKey(112);
Just a thought, what about constants for those? Numbers are annoying, and hard to remember. Would be better to have PressKey(F12) where F12 is defined as 112. Could be done in SRL I guess but would be cooler to have it inbuilt, makes it easier on people who want to make scripts that dont use SRL
Wizzup?
2009-11-10 04:51:36
From: The Claw
Just a thought, what about constants for those? Numbers are annoying, and hard to remember. Would be better to have PressKey(F12) where F12 is defined as 112. Could be done in SRL I guess but would be cooler to have it inbuilt, makes it easier on people who want to make scripts that dont use SRL
When I said:
From: Wizzup?
KeyUp/Down/Press take a VK (Virtual Key). These haven't been exported to PS yet, so you'll have to look then up manually in lcltype… ;)
I meant to imply that I was going to add them later. :)