-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
41 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,26 @@ | ||
scriptdir = CreateObject("Scripting.FileSystemObject").GetParentFolderName(WScript.ScriptFullName) | ||
x=InputBox("Enter the name of the game:" , "Add the Roblox game shortcut", Default) | ||
if x = "" then | ||
' Get the directory of the current script | ||
scriptDir = CreateObject("Scripting.FileSystemObject").GetParentFolderName(WScript.ScriptFullName) | ||
|
||
' Prompt user to enter the name | ||
gameName = InputBox("Enter name of the game:", "Create new Roblox game shortcut") | ||
If gameName = "" Then | ||
WScript.Quit | ||
end if | ||
y=InputBox("Name: " & x & vbCrLf & vbCrLf & "Enter the ID of the game:" , "Add the Roblox game shortcut", Default) | ||
if y = "" then | ||
End If | ||
|
||
' Prompt user to enter the game ID | ||
gameID = InputBox("Name: " & gameName & vbCrLf & vbCrLf & "Enter the ID of the game:", "Create new Roblox game shortcut") | ||
If gameID = "" Then | ||
WScript.Quit | ||
end if | ||
Set Shell = CreateObject("WScript.Shell") | ||
DesktopPath = Shell.SpecialFolders("Desktop") | ||
Set link = Shell.CreateShortcut(DesktopPath & "\" & x & ".lnk") | ||
link.Arguments = y | ||
link.Description = "Made with rbxShortcutLauncher by MixeroTN" | ||
'link.HotKey = "CTRL+ALT+SHIFT+X" | ||
link.IconLocation = scriptdir & "\roblox.ico" | ||
'link.TargetPath = "C:\Windows\System32\cmd.exe" | ||
link.TargetPath = scriptdir & "\operator.vbs" | ||
link.WorkingDirectory = scriptdir | ||
'link.WindowStyle = 3 | ||
'link.WorkingDirectory = "c:\blah" | ||
link.Save | ||
End If | ||
|
||
' Create a desktop shortcut for the game | ||
Set shell = CreateObject("WScript.Shell") | ||
Set shortcut = shell.CreateShortcut(shell.SpecialFolders("Desktop") & "\" & gameName & ".lnk") | ||
|
||
'CreateObject("Wscript.Shell").Run scriptdir & "\operator.bat",0,True | ||
' Set shortcut properties | ||
shortcut.Arguments = gameID | ||
shortcut.Description = "Made with rbxShortcutLauncher by MixeroTN" | ||
shortcut.IconLocation = scriptDir & "\roblox.ico" | ||
shortcut.TargetPath = scriptDir & "\operator.vbs" | ||
shortcut.WorkingDirectory = scriptDir | ||
shortcut.Save |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
Dim arg, var1 | ||
set arg = WScript.Arguments | ||
Set arg = WScript.Arguments | ||
var1 = arg(0) | ||
CreateObject("Wscript.Shell").Run ".\operator.bat """&var1&"""",0,True | ||
|
||
CreateObject("Wscript.Shell").Run ".\operator.bat """ & var1 & """", 0, True |