TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. PNick
    3. Posts
    P
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 4
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by PNick

    • Youtube VBS help needed

      I wrote some VBS that opens the program I want:

      Dim objShell
      Set objShell = WScript.CreateObject( "WScript.Shell" )
      objShell.Run("""C:\Users\P_Nic\OneDrive\Desktop\apps\Awesome Tube""")
      Set WSS = CreateObject("Wscript.Shell")
      Wscript.sleep 6000
      WSS.sendkeys "{TAB}"
      Wscript.sleep 300
      WSS.sendkeys "{TAB}"
      Wscript.sleep 300
      WSS.sendkeys"{enter}"
      Set objShell = Nothing""
      

      I don't know how to set up the parameters I want to go into the search function. Here is some code that I threw together to accomplish a similar task:

      For Each a In WScript.Arguments
      param = param & a & " "
      Next 'a
      param = LCase(Trim(param))
      Set WSS = CreateObject("Wscript.Shell")
      arg = "https://www.google.ca/search?q=" & param & "site:youtube.com"
      strURL = Chr(34) & "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe " & Chr(34) & " " & Chr(34) & arg & Chr(34)
      WSS.Run strURL
      WSS.AppActivate "Google Chrome"
      Wscript.sleep 2000
      WSS.sendkeys "{TAB}"
      Wscript.sleep 300
      WSS.sendkeys "{TAB}"
      Wscript.sleep 300
      WSS.sendkeys "{TAB}"
      Wscript.sleep 300
      WSS.sendkeys "{TAB}"
      Wscript.sleep 300
      WSS.sendkeys "{TAB}"
      Wscript.sleep 300
      WSS.sendkeys "{TAB}"
      Wscript.sleep 300
      WSS.sendkeys "{TAB}"
      Wscript.sleep 300
      WSS.sendkeys "{TAB}"
      Wscript.sleep 300
      WSS.sendkeys "{TAB}"
      Wscript.sleep 300
      WSS.sendkeys "{TAB}"
      Wscript.sleep 300
      WSS.sendkeys "{TAB}"
      Wscript.sleep 300
      WSS.sendkeys "{TAB}"
      Wscript.sleep 300
      WSS.sendkeys "{TAB}"
      Wscript.sleep 300
      WSS.sendkeys "{TAB}"
      Wscript.sleep 300
      WSS.sendkeys "{TAB}"
      Wscript.sleep 300
      WSS.sendkeys "{TAB}"
      Wscript.sleep 300
      WSS.sendkeys "{TAB}"
      Wscript.sleep 300
      WSS.sendkeys "{TAB}"
      Wscript.sleep 300
      WSS.sendkeys "{TAB}"
      Wscript.sleep 7500
      WSS.sendkeys "+{f}"
      Set WSS = Nothing""
      

      I'm not good with coding, I just google and copy stuff that sounds right and trial and error until it does what I want. Any help would be appreciated!

      posted in General Discussion
      P
      PNick
    • Create VBScript to run TeaTV

      I created a command to open TeaTV.

      Then I moved on and used VBScript I found on here to get youtube to search and play video's.

      Is there any Script I can edit and work with to perform the same thing type of thing with executable TeaTV. I am far from a coder, but don't mind messing around to get it to do what I want once the basics are wrote for me.

      posted in General Discussion
      P
      PNick
    • Default computer not working for my first created trigger

      I created a command to open executable "TeaTV". I used the voice command "movies" because I couldn't seem to get her to understand TeaTV, not sure if it was a "T TV" vs TeaTV issue or some other confusion.
      But my issue now is that it doesn't recognize my laptop as the default computer for this trigger, like it does the examples, "calculator". Instead I have to say "Alexa, Tell Trigger CMD to open movies on my laptop". I would like to be able to just say "Alexa, Tell trigger CMD to open movies"
      Thank you for any assistance!

      posted in General Discussion
      P
      PNick