sendkeys give licence error

G

Guest

Hello everyone,

When I am trying to start an application using sendkeys. I get an error
that License agreement has expired, but If I try to start thate exe file
manually by going to the directory where exe files resides, it does not give
me any error.


Process myProcess = Process.Start("C:\Program Files\test.exe);

SetForegroundWindow(myProcess.Handle);

if (myProcess.Responding)
SendKeys.SendWait("{ENTER}");
else
myProcess.Kill();

Thanks.

Any help willl be appreciated
 
G

Guest

I just want to rephrase my question.
the behaviour of exe file changes if I execute the file
by sendkeys or manually.

I am trying to execute this exe file through sendkeys and my .net
application opens the exe file, but says that exe file license has expired,
but when I manually click on the exe file, the exe application opens. I am
not sure why this happening.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top