-1

In one of my tests, i need to open Run Dialog Box and open an application. How can i open 'Run' in the very first step using C# script in Testcomplete.

Thanks in Advance

user2993178
  • 97
  • 1
  • 12
  • 1
    Why not simply launch the app using TestedApps, or Sys.OleObject("WScript.Shell").[Run](http://msdn.microsoft.com/en-us/library/d5fk67ky(v=vs.84).aspx)(*path*)? – Helen Nov 15 '13 at 09:03

1 Answers1

0

Helen is right: the best way is to just use the Tested Applications feature. However, if you must use the Run dialog for some reason, you can open it using this code of line:

Sys.Keys("[Hold][Win]r[Release]");
Dmitry Nikolaev
  • 3,803
  • 2
  • 19
  • 23
  • @user2993178: If an answer helped you, consider upvoting it and/or marking the answer as accepted by clicking the check mark. Accepting an answer marks the problem as solved and gives both you and answerer some reputation points. – Helen Nov 18 '13 at 13:01