Link to home
Start Free TrialLog in
Avatar of affter333
affter333

asked on

WshShell.SendKeys NOT WORKING !

Hi, I have a jscript that's directly copied from MS sample page
the weired thing is that it gives me script error on

"WScript.Sleep" and "WshShell.SendKeys"

I'm on win98se, never upgrade wscript and cscript.

<html>
      <script>

        var WshShell = new ActiveXObject( "WScript.Shell" );  // no error
        WshShell.Run("calc");                                                   // no error

        WScript.Sleep(1000);          // generate script error
        WshShell.SendKeys("2");   // generate script error      

       </script>
   
</html>

====================================

It seem that sleep and sendkey does not work
on my machine,  Any Ideas?

Thanks for your kind help ...


















ASKER CERTIFIED SOLUTION
Avatar of devic
devic
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Have you resolved your problem?