title: Reg - Activating Application while using Device Replay Method
body: <p>I need to pass keystrokes and string into an Edit box which has an event handeler (once value entered in edit box, an Web Button will get enabled.</p>
  
  <p>In the above scenario am using Device replay method. And below is my code. The Problem is am not able to activate my browser with Device replay object. And hence sent key are sent to Application properly.</p>
  
  <p>Could anyone help me on this.</p>
  
  <pre><code>Set Obj = CreateObject ("Mercury.DeviceReplay")
  Systemutil.Run "D:\QTP Training\Example Form\Dynamic_1.html"
  Browser("Browser").Page("Page").Sync
  For i=1 to 12
  Obj.PressKey(09)
  Next
  Obj.SendString "Lakshman"
  Browser("Browser").Page("Page").WebButton("Type and enable me").Click
  Browser("Browser").Dialog("Message from webpage").WinButton("OK").Click
  </code></pre>