1
Window / How to simulate keyboard/mouse press with SFML?
« on: March 07, 2014, 06:12:33 pm »
HI Everyone !
Is it possible to simulate a key press with SFML ?
I mean can SFML press a key for me ?
The reason I want this is that I'm writing a program which waits for some time (entered by user) and then runs a kernel command . (Linux Ubuntu 13)
But sometimes when the command is "sudo apt-get install ..." it requires a password and a confirmation which is done by pressing 'y' ;
Do you think I'm doing the right thing ?
Is there a better solution to do this or I should keep looking for key press simulation ?
+ :
I tried searching using forum's search BUT I faced this message :
Database Error
Please try again. If you come back to this error screen, report the error to an administrator.
Who is this administrator ?
Is it possible to simulate a key press with SFML ?
I mean can SFML press a key for me ?
The reason I want this is that I'm writing a program which waits for some time (entered by user) and then runs a kernel command . (Linux Ubuntu 13)
But sometimes when the command is "sudo apt-get install ..." it requires a password and a confirmation which is done by pressing 'y' ;
Do you think I'm doing the right thing ?
Is there a better solution to do this or I should keep looking for key press simulation ?
+ :
I tried searching using forum's search BUT I faced this message :
Database Error
Please try again. If you come back to this error screen, report the error to an administrator.
Who is this administrator ?