none
what is sendkeys for window key + r? RRS feed

  • Question

  • succeed to login window but do not know how to send window key + r to run command

    Option Explicit
    On Error Resume Next
    Dim WshShell
    set WshShell=CreateObject("WScript.Shell")
    WshShell.run "mstsc /v:192.168.1.1 /console"
    WshShell.AppActivate "Windows Security"
    WScript.Sleep(2000)
    WshShell.SendKeys("password{enter}")
    WshShell.SendKeys ("{Enter}")
    WScript.Sleep(1000)
    WshShell.SendKeys ("{Y}")
    WScript.Sleep(8000)
    WshShell.SendKeys ("{Enter}")
    WScript.Sleep(20000)
    WshShell.SendKeys ("{Enter}")
    WScript.Quit


    can not choose absolute uri, why there are still choices?

    Sunday, May 17, 2015 3:56 PM

Answers