Skip to content

Commit

Permalink
Improve readability
Browse files Browse the repository at this point in the history
  • Loading branch information
MixeroTN committed Aug 26, 2024
1 parent 4ed1335 commit 535a222
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 32 deletions.
44 changes: 23 additions & 21 deletions Launcher.vbs
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
24 changes: 15 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,37 @@
**Windows desktop shortcuts for Roblox games - launch Roblox without visible browser!**

## Requirements
- Mozilla Firefox (not used by you as default browser, if so you can switch to LibreWolf).
- Roblox URL Launcher by DevKurka (Firefox extension) installed.
- Logged into Roblox website.
- Allowed to launch Roblox Player by this browser without asking (to do so press play on game's page and press allow on popup window).

## [![Download browser](https://img.shields.io/badge/Download%20browser-Firefox-FF7139?style=for-the-badge&logo=firefoxbrowser)](https://mozilla.org) [![Download browser](https://img.shields.io/badge/Download%20browser-Librewolf-00ACFF?style=for-the-badge&logo=firefoxbrowser)](https://librewolf.net) [![Install ADDON](https://img.shields.io/badge/Install%20addon-Roblox%20URL%20Launcher-20123a?style=for-the-badge&logo=firefoxbrowser)](https://addons.mozilla.org/en-US/firefox/addon/roblox-url-launcher)
- Mozilla Firefox (not used by you as default browser, if so you can switch to LibreWolf).
- Roblox URL Launcher by DevKurka (Firefox extension) installed.
- Logged into Roblox website.
- Allowed to launch Roblox Player by this browser without asking (to do so press play on game's page and press allow on popup window).

## [![Download browser](https://img.shields.io/badge/Download%20browser-Firefox-FF7139?style=for-the-badge&logo=firefoxbrowser)](https://mozilla.org) [![Download browser](https://img.shields.io/badge/Download%20browser-Librewolf-00ACFF?style=for-the-badge&logo=firefoxbrowser)](https://librewolf.net) [![Install addon](https://img.shields.io/badge/Install%20addon-Roblox%20URL%20Launcher-20123a?style=for-the-badge&logo=firefoxbrowser)](https://addons.mozilla.org/en-US/firefox/addon/roblox-url-launcher)

## How it works?
First you need to do after matching a requirements is launching `Launcher.vbs`.

You will be asked to provide the name (it's shorcut name so you can provide whatever you want) and the id of the game. To get the id you need to visit the game's page on Roblox website and copy paste the numbers from the url.
First you need to do after matching a requirements is launching `Launcher.vbs`.

After that new shortcut will appear on your desktop. After clicking at it Firefox starts in headless mode (visible only in process list) and you should get the Roblox window after few seconds (depents on your specs). When Roblox process starts firefox.exe processes are being terminated.
You will be asked to provide the name (it's shortcut name so you can provide whatever you want) and the id of the game. To get the id you need to visit the game's page on Roblox website and copy paste the numbers from the url.

After that new shortcut will appear on your desktop. After clicking at it Firefox starts in headless mode (visible only in process list) and you should get the Roblox window after few seconds (depends on your specs). When Roblox process starts firefox.exe processes are being terminated.

## Security

The Firefox extension you installed allows to launch any Roblox game via url (normally that only happens by VIP servers links). In this way your data is secured by browser's encryption.

## Why you shouldn't use Firefox normally when using this scripts?

To launch browser in headless mode (silently) we need to terminate Firefox's processes first. It's hard or impossible to launch new firefox.exe processes (there's many) one to normally visible window and second to headless mode. The point of this script is to launch your favorite Roblox games instantly from your desktop without seeing and opening browser cards in front of you. Also opening website without rendering it is faster.

## Why not Google Chrome?

First of all - stupid (in my opinion) security policies. You can launch Chrome like Mozilla in headless mode (silent-mode) but then you can't use extensions and there's no way to bypass that. Second is the popularity. Chrome is the most popular browser that is probably used by most of you.

## Firefox update messed it up!
Even in headless mode Firefox launches post-update window first. To make extension launch Roblox website card must be focused. So if you see the update window wait for it to dissapear and click at shortcut again. This will of course terminate firefox.exe processess and launch it again. If you still can't launch a game:

Even in headless mode Firefox launches post-update window first. To make extension launch Roblox website card must be focused. So if you see the update window wait for it to dissapear and click at shortcut again. This will of course terminate firefox.exe processes and launch it again. If you still can't launch a game:

- Open Firefox normally and try to launch the game from website (then you can make sure browser is allowed to launch Roblox Player without asking)
- Delete the shortcut and make the new one (also check that id is correct)
5 changes: 3 additions & 2 deletions operator.vbs
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

0 comments on commit 535a222

Please sign in to comment.