Forum Discussion

itomjpeters's avatar
itomjpeters
New Contributor
13 years ago

Run Tested Application with CTRL Key Down

Good Day!



My application has a feature which is only activated if the CTRL Key is held down during application startup.



How can I set my keyword test to do this? I have tried appending to my test (the only step was Run TestedApp) and, holding the CTRL key down did open my feature, but TC did not record that aspect of the startup.



Any assistance would be appreciated.



Thanks!

Tom
  • Hi Tom,



    Add the Sys.Desktop.KeyDown(Win32API.VK_LCONTROL) code snippet before the Run TestedApp operation and Sys.Desktop.KeyUp(Win32API.VK_LCONTROL) after it. This should do the trick.