Opening browser on a variable page using vbscript

前端 未结 4 675
猫巷女王i
猫巷女王i 2020-12-11 07:24

I\'m trying to write a bit of VBScript to open a browser on a specific webpage. Ultimately this webpage would be unique per script. At the moment I have the following code w

4条回答
  •  时光取名叫无心
    2020-12-11 07:55

      Sub RickRoller()
       Dim counter, myNum, objShell, iURL
       counter = 0
       myNum = 100
       Do Until myNum = 1
         myNum = myNum - 1
         counter = counter + 1
         Set WshShell = CreateObject("WScript.Shell")
         WshShell.SendKeys(chr(&hAF))
       Loop
       set objShell = CreateObject("WScript.Shell")
       iURL = "https://youtu.be/oHg5SJYRHA0?autoplay=1&t=44"
       objShell.run(iURL)
     End Sub
    
    
     RickRoller()
    

提交回复
热议问题