Forum Discussion

m_essaid's avatar
m_essaid
Valued Contributor
6 years ago

Windows R command

Hi,

Is there a way to send a command with TestComplete as if it was a executed through a Windows-R key combination ?

 

Thank you,

 

Mehdi

1 Reply

  • m_essaid's avatar
    m_essaid
    Valued Contributor

    I think this could be a solution :

     

      TestedApps.Clear;
      TestedApps.Add('C:\WINDOWS\system32\reg.exe', '', 1, true, 'C:\WINDOWS\system32');
      TestedApps.reg.Params.SimpleParams.CommandLineParameters:= 'import c:\yourRegFile.reg';
      TestedApps.reg.Params.SimpleParams.Activate;
      TestedApps.reg.Run(1, true);