Error: 'WScript' is undefined'

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mike John

    #1

    Error: 'WScript' is undefined'

    I am trying to send key to the browser to launch the send
    page command

    Systax:
    <script langauage = "Javascript ">
    function Sendmy()
    {
    var wshell = Server.CreateOb ject("WScript.S hell")
    wshell.sendkeys ("Atl+T+M+P" )
    }

    </script>

    I am receiving an error: 'WScript' is undefined'

    any reason why

    Or is there any other to send keys

    Sincerely yours

    Mike John
  • Natty Gur

    #2
    Re: Error: 'WScript' is undefined'

    Hi,

    as i told you if your client dont have window scripting it wont work.
    look at msdn for more info:
    http://msdn.microsoft.com/library/de.../en-us/script5
    6/html/wsmthsendkeys.a sp

    Natty Gur, CTO
    Dao2Com Ltd.
    28th Baruch Hirsch st. Bnei-Brak
    Israel , 51114

    Phone Numbers:
    Office: +972-(0)3-5786668
    Fax: +972-(0)3-5703475
    Mobile: +972-(0)58-888377

    Know the overall picture


    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!

    Comment

    Working...