I can't seem to get this code to work on a console foxpro application. Is there anything that I'm missing. I've tested this code on other applications and it works.
ipmo "D:\WASP\WASP.dll"
Select-Window "ntvdm" | Set-WindowActive | Select-Control | Send-Keys "r"
When i press "r" on the keyboard, the app accepts the input but when I run this code, it does not.
Thank you very much.
I just tried using WASP with your code against calculator and it seems to work correctly.
You might want to try using this:
Btw, make sure your app is indeed having process name ntvdm this might cause of a problem. This way you are doing about the same thing. If you are having some performance issues you could add some waiting, i.e Sleep -m 50 between every line.