문제

I want to create a application that simulates various users but I need this "ghost" users to type on the keyboard, how to I simulate a keypress and keyrealease events on Ruby?

도움이 되었습니까?

해결책

Java has a class called Robot(I think) which simulates stuff like that.You could use JRuby to invoke that. I ever had some testscript somewhere,I'll post it when i find it..but I remember it was really dead simple to do that with that class,you even could move the cursor around ,really funny tough.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top