Platform Filter: |
|
|
|
|
Launches the Amazon UK Appstore (and searches for an app if additional parameters are submitted) |
Set sh = WScript.CreateObject("WScript.shell") If WScript.Arguments.Count > 0 Then sh.Run "http://www.amazon.co.uk/s/ref=nb_sb_noss_2?url=search-alias%3Dmobile-apps&field-keywords=" & Replace(WScript.Arguments(0), "_", "%20") Else sh.Run "http://www.amazon.co.uk/mobile-apps/b/ref=amb_link_175361507_3?ie=UTF8&node=1661657031&pf_rd_m=A3P5ROKL5A1OLE&pf_rd_s=center-1&pf_rd_r=1QCAK1P2NJ7CBSH4A890&pf_rd_t=1401&pf_rd_p=408602187&pf_rd_i=1000644603" End If
|
|
|
|
Launches the command line and executes additional parameters if submitted |
Set sh = WScript.CreateObject("WScript.shell") If WScript.Arguments.Count > 0 Then sh.Run "cmd /k " & Replace(WScript.Arguments(0), "_", " ") Else sh.Run "cmd /k cd " & sh.ExpandEnvironmentStrings("%USERPROFILE%") End If
|
|
|
|
Launches the Control Panel |
Set sh = WScript.CreateObject("WScript.shell") sh.Run "control"
|
|
|
|
Launches the Dropbox login web page |
Set sh = WScript.CreateObject("WScript.shell") sh.Run "https://www.dropbox.com/login?lhs_type=anywhere"
|
|
|
|
Launches the Outlook email client |
Set sh = WScript.CreateObject("WScript.shell") sh.Run "outlook"
|
|
|
|
Launches Gmail via Google Chrome |
|
|
|
|
srie streaming |
|
|
|
|
Launches the NBC Video web page |
Set sh = WScript.CreateObject("WScript.shell") sh.Run "http://www.nbc.com/video"
|
|
|
|
Launches Netflix via Google Chrome |
|
|
|
|
Pandora Internet Radio |
Set sh = WScript.CreateObject("WScript.shell") If WScript.Arguments.Count > 0 Then sh.Run "http://www.pandora.com/results?search_query=" & Replace(WScript.Arguments(0), "_", "%20") Else sh.Run "http://www.pandora.com" End If
|
|
|
|
Launch the Plex Home Theater application |
Set sh = WScript.CreateObject("WScript.shell") sh.Run "C:\Program Files (x86)\Plex Home Theater\Plex Home Theater.exe"
|
|
|
|
Displays the Windows Run dialog and executes additional parameters if submitted |
Set sh = WScript.CreateObject("WScript.shell") appdata = sh.ExpandEnvironmentStrings("%APPDATA%") If WScript.Arguments.Count > 0 Then sh.Run Replace(WScript.Arguments(0), "_", " ") Else sh.Run appdata & "\SkyNetSoftware\myControlServer\Scripts\Run\run.exe" End If
|
|
|
|
Starts the screen saver as selected by system preference (if no screen saver is currently selected the script will search the Windows folder for a candidate) |
Set sh = WScript.CreateObject("WScript.shell") windir = sh.ExpandEnvironmentStrings("%WINDIR%")
Const HKCU = &H80000001 ' HKEY_CURRENT_USER
Set reg = GetObject("winmgmts:\\.\root\default:StdRegProv") path = "Control Panel\Desktop" key = "scrnsave.exe" reg.GetStringValue HKCU, path, key, value
scr = ""
If IsNull(value) Then ' no screen saver currently set, just use the first one located in the windows directory Set fso = CreateObject("Scripting.FileSystemObject") Set dir = fso.GetFolder(windir & "\System32\") For Each file in dir.Files If UCase(fso.GetExtensionName(file.Name)) = "SCR" Then scr = windir & "\System32\" & file.Name Exit For End If Next Else scr = value End If
'Wscript.Echo scr
If scr <> "" Then sh.Run scr & " /s" Else Wscript.Echo "Unable to locate any screen savers" End If
|
|
|
|
Powers PC down in to sleep mode (stand-by) after user confirmation |
Set sh = WScript.CreateObject("WScript.shell") result = MsgBox("Execute Windows sleep command?" & vbCrLf & "(PC power will revert to stand-by)", 4, "Sleep") If result = 6 Then sh.Run "rundll32.exe powrprof.dll,SetSuspendState Sleep" End If
|
|
|
|
Launches the Spotify application and parses additional parameters, eg. track, artist, album |
Set sh = WScript.CreateObject("WScript.shell") appdata = sh.ExpandEnvironmentStrings("%APPDATA%") If WScript.Arguments.Count > 0 Then sh.Run appdata & "\SkyNetSoftware\myControlServer\Scripts\Spotify\spotify.exe " & Replace(Replace(Replace(WScript.Arguments(0), "artist_", "artist:"), "track_", "track:"), "album_", "album:") Else sh.Run appdata & "\SkyNetSoftware\myControlServer\Scripts\Spotify\spotify.exe" End If
|
|
|
|
Launches web browser to www.tvcatchup.com |
Set sh = WScript.CreateObject("WScript.shell") If WScript.Arguments.Count > 0 Then sh.Run "http://www.tvcatchup.com/channels.html" Else sh.Run "http://www.tvcatchup.com" End If
|
|
|
|
Launches the YouTube web page (and searches for a video if additional parameters are submitted) |
Set sh = WScript.CreateObject("WScript.shell") If WScript.Arguments.Count > 0 Then sh.Run "http://www.youtube.com/results?search_query=" & Replace(WScript.Arguments(0), "_", "%20") Else sh.Run "http://www.youtube.com" End If
|