I am trying to develop a asp.net web application using VB.net to set focus to an application and sendkeys to it. I have used the following code on Page_Load event and get the same error each time:
Exception Details: System.ArgumentException: Process 'Calculator' was not found.
Source Error:
Line 23: Dim MyAppID, ReturnValue
Line 24: ' In Microsoft Windows:
Line 25: AppActivate("Calculator") ' Activate App
Line 26:
Line 27: '' AppActivate can also use the return value of the Shell function.
Calculator is running and the Title bar is ("Calculator")
Please Help.
Exception Details: System.ArgumentException: Process 'Calculator' was not found.
Source Error:
Line 23: Dim MyAppID, ReturnValue
Line 24: ' In Microsoft Windows:
Line 25: AppActivate("Calculator") ' Activate App
Line 26:
Line 27: '' AppActivate can also use the return value of the Shell function.
Calculator is running and the Title bar is ("Calculator")
Please Help.