Feb 26, 2014 at 5:16 PM
Edited Feb 26, 2014 at 5:18 PM

I have some issues using this library. First, some commands are not executed on SSH server machine. For e.g. ls work ok, but cd /home doesn't work.

Second thing scares me most. How can send key press event? OK, I can send command, but I need to for e.g. execute command to open application and send press key event like Escape or Ctrl + X etc...
Feb 28, 2014 at 7:50 AM
I bet the "cd /home" works. You have to keep in mind that every RunCommand() has a new "shell".
If you want to run commands together in one context you have to create/manage your own shell or combine them with "&&" or "||".

e.g.: RunCommand("cd /home/ && pwd");