The button object is probably one of the most used and most important objects you can use inside your Game Launchers. It allows for navigation, launching of games or apps, launching of websites and checking for updates.
Here you have 3 states of the button. UP (default, no mouse hover), HOVER (when the user hovers over the button) and CLICK (when the user clicks the button).
You can click each individual button to load up a new image. You can import your own if you want to.
There are numerous button actions available for each button. You can select one action per button. The launcher will then execute the action with the given parameters…
Execute Game or App
This will execute a game or application. You must use relative paths here. If the launcher is in the same folder as the game executable, then just type in game.exe (or the name of your game executable). If it is in a sub-directory, then type in the relative path (ie: executables/game.exe).
You can also send commandline arguments/switches with these buttons.
Close Launcher upon Action
This will exit the launcher when the button is clicked. If this is left unchecked, it will keep the launcher running in the background.
Go to a Webpage
Select this if you wish to launch a webpage on the users desktop. You must type in the full address, including protocol (ie: https://yourwebsite.com)
End Launcher (Exit)
This will exit the launcher.
Check for Updates
This will execute the built-in update system or the AOPS (advanced online patching system) if you have included them in your game launcher.
This will instruct the launcher to change the page to the specified page number if clicked. Useful for navigating around a launcher with multiple pages.
Retrieve from Registry
This action is useful for detecting the installation of a game or app on the users computer via the registry. You specify what registry key to check and if the path/executable is found, it will launch it.
Registry Root Key
Please type in (IN CAPS) the ROOT key for the registry
Registry Current Key
Please type in the CURRENT key for the registry
Please type in the string that will locate the installation path of the game/app you are looking for
Please specify an additional filename here (executable name) if the Registry String only defines a path, otherwise leave blank.
Disable Button if not Found
This will disable the user from clicking on the button if the registry entry is not found.
Wait for End
This will pause the runtime of the launcher until the executed game or app has finished.
Enter any command line arguments into this box and the executed game or app will be sent with this command line.
This will allow you to change the transparency level of the button in the launcher. Values are from 0 (opaque) to 128 (transparent).
An example of the Retrieve from Registry Action
Let’s say you want to check if the user has GTA V (Grand Theft Auto 5) installed on their computer. When you install GTA V to your computer it creates a registry entry locating it. For GTA V, the registry entry setup would be as follows:
Root Key: HKEY_LOCAL_MACHINE
Current Key: SOFTWARE\Wow6432Node\rockstar games\Grand Theft Auto V
Registry String: InstallFolder
Additional Filename: gta5.exe
If this key is found on the users computer, it means they have GTA V installed and it will launch the game when the user clicks the button.
Allows you to create a minimize button so the user can minimize the launcher window. Can work in conjunction with the system tray property, if enabled.