The problem i am facing is it that during the course of the execution of the script, if knowingly or unknowingly any text editor is opened, the remaining command inside the "a.SendKeys" command is displayed there.
I have no clue why is such a thing happening.
-
a.Run("C:/cygwin/cygwin.bat"); #invokes the cygwin session
-
a.SendKeys ("cd D:/temp/code" + "{Enter}") #executes the cd command
-
now when i invoke a text editor (knowingly or unknowingly) the remaining command in the code below is printed in the editor.
-
a.SendKeys ("ls -lrt?" + "{Enter}")
-
I just want the commands to be executed in the cygwin prompt which is invoked as shown in the code section of the 1st post. But when a text editor is invoked the issue persists.
Is it something to do with handling with active window or something?
i hope i am able to convey the problem i am facing.
Thanks,
Badri