Skip to content

Command line options (Pre v1.2.0)

Markus edited this page Oct 1, 2020 · 3 revisions

NOTE: These options are removed as of version 1.2.0, since they have moved into the UI.

Autobet includes several command-line options described in here.

Table of contents

--help

Displays all available commands and their syntax

Usage

Autobet.exe --help to display help

Result

------------------- Help -------------------
General options
--debug    Show log in cmd and save log file
--debug:full    Show log in cmd, save log file and some debugging images into a zip folder
--headless    Run the program in headless mode (without UI)
--no-web-server    Start without web server
--show-cmd    Start and show the log (similar to --debug just without saving it)

Settings
--set-custom-betting-pos     Set a custom increase bet (>) position (one-time value). Overwrites any other option.
--set-betting-pos-template <gameWidth, pos>...    Set increase bet (>) position templates for different game resolutions
--time-sleep     Set the sleep time during which the race is running
--clicks     Set the number of clicks to place a bet (if not 10000$ are placed)
--run-configurator    Run the configuration tool
--store-config-json    Store a config file as json on the users Desktop
--load-config-json    Load a json config file from the users Desktop
--save-settings    Save the current settings given by the command line
--delete-settings    Delete the settings file

Update options (Do not use)
--afterUpdate    Clean up after update
--runUpdate [<args...>]    Run the update

Development options (Do not use)
--signInstaller    Sign a installer file
--checkSignature    Check a signature

--debug and --debug:full

See the Debugging page for further information.

--headless

Starts the program without the user interface and shows logging information in the console

Usage

Autobet.exe --headless to start in headless mode

--no-web-server

Start without the web server, so you will lose the ability to view stats on a different device while the program is running

Usage

Autobet.exe --no-web-server to start without the web server

--show-cmd

Shows logging information. Works like --debug but does not save any logging information to your computer. Only displays it.

Usage

Autobet.exe --show-cmd to show logging information in the cmd

--set-custom-betting-pos <pos>

Set a position for the 'increase bet' button in pixels starting from the right side of your screen. This value cannot be saved and will overwrite any other setting.

Arguments

  • pos: the position of the 'increase bet' button, in pixels, e.g. 1500.

Usage (example)

Autobet.exe --set-custom-betting-pos 1500 to set the position to 1500

--set-betting-pos-template <gameWidth, pos>...

Set the position of the 'increase bet' button for different game resolutions. Must be combined with --save-settings to save the settings to your computer, rather than discarding them at program termination.

Arguments

  • gameWidth: the width of your game window, e.g. 1920.
  • pos: the position of the 'increase bet' button in pixels starting from the left of the game window.

Usage (examples)

Basic

Autobet.exe --set-betting-pos-template 1920 1500 to set the position of the button to 1500 when the games width is 1920 pixels

The command can also take more arguments to set these values for multiple resolutions:

Autobet.exe --set-betting-pos-template 1920 1500 2560 2000 to set the position of the button to 1500 when the games width is 1920 pixels and set the position to 2000 when the games width is 2560 pixels.

To store the settings so they will be always applied at program startup, combine with the --save-settings option. All newly set settings will be stored, plus any older setting, not overwritten by this command will also be stored:

Autobet.exe --set-betting-pos-template 1920 1500 --save-settings to set the position of the button to 1500 when the games width is 1920 pixels and save it to your hard drive.

--time-sleep <time>

Set the time to sleep between the bets. Increase when some races take longer, so the program is unable to start a new one (for example when the 'transaction pending' message comes up and takes longer than usual on your machine/internet connection), decrease to start bets slightly earlier and save some time (not actually recommended). Default is 36 seconds. Combine with --save-settings to not discard this setting at program termination.

Arguments

  • time: The time a race takes to finish (usually worst-case scenario, to not waste time not placing bets) in seconds, default is 36.

Usage (examples)

  • Autobet.exe --time-sleep 36 to set the time a race takes to 36 seconds.
  • Autobet.exe --time-sleep 36 --save-settings to set the time a race takes to 36 seconds and save this value.

--clicks <numClicks>

Set the number of clicks it takes to place a max bet. Use only when not $10000 are placed, when a bet is placed. May be useful on devices with lower fps, on these a higher click count is required. Combine with --save-settings to not discard this setting at program termination.

Arguments

  • numClicks: a number of clicks to place a bet. The default is 31. The number given may not represent an actual number of clicks, due to synchronization issues when the game is running at lower fps, using a higher number than the actual number of clicks required is recommended.

Usage (examples)

  • Autobet.exe --clicks 32 to set the number of clicks required to place a max bet to 32.
  • Autobet.exe --clicks 32 --save-settings to set the number of clicks to 32 and save this setting.

--run-configurator

Run a configurator tool to configure the position of the 'increase bet' button with different game resolutions. Any conflicting option will be overwritten. Settings will be stored at program termination

Usage

Autobet.exe --run-configurator

  1. Start the game and run the program with this option activated.
  2. Move your mouse over the 'increase bet' button.
  3. Press CTRL+SHIFT+F10 to save the position.
  4. Change the resolution of the game to different values (if required) and repeat step 2 and 3 as often as you like. If you repeat this with a previously saved game resolution, the previously saved position will be overwritten.
  5. Press CTRL+SHIFT+F9 to exit and save

Result

Run "GTA Online Autobet.lnk" --run-configurator (Using a shortcut to the program)

[17-08-2020 19:14:03] [main.cpp:1023] [DEBUG] Settings file exists. Loading it
[17-08-2020 19:14:03] [settings.cpp:65] [DEBUG] Loading winnings from file
[17-08-2020 19:14:03] [utils.cpp:140] [DEBUG] Made process DPI aware
You have started the configuration assistant for the betting increase button (>)
move your mouse over the button and press CTRL+SHIFT+F10
you can the edit your game's resolution to add more values
Press CTRL+SHIFT+F9 to exit

The game is not running
The game is now running
Window width changed to 1920

(Pressing CTRL+SHIFT+F10)

Saving x pos: 1075 and game width: 1920

(Pressing CTRL+SHIFT+F9)

Exiting now. Bye.

--store-config-json

Store a config file in the JSON format on your desktop to edit some configuration values. Will exit with this option enabled. The clicks needed to place a max bet can be changed, the time a race takes can be changed and the resolutions of the game with the position of the 'increase bet' button can be changed and more of these can be added.

Usage

Autobet.exe --store-config-json to store a config file on your desktop.

Result

The configuration file may look something like this:

{
    "clicks": 31,
    "posConf": [
        {
            "resolution": 1920,
            "value": 1075
        },
        {
            "resolution": 2560,
            "value": 2000
        }
    ],
    "time_sleep": 38
}

--load-config-json

Loads a JSON config file previously stored by '--store-config-json' and edited by you from your desktop and saves the settings made in the JSON file.

Usage

Autobet.exe --load-config-json to load the 'autobet_config.json' file from your desktop.

--save-settings

Saves your current settings made with other command-line options to apply them at program startup. Will overwrite any conflicting options.

Usage

  • Autobet.exe --set-betting-pos-template 1920 1500 --clicks 32 --time-sleep 37 --save-settings to set the position of the 'increase bet' button to 1500 when the width of the game is 1920 pixels, set the clicks needed for a max bet to 32, set the time a race takes to 37 seconds and save all these settings.
  • See --set-betting-pos-template, --time-sleep and --clicks options for further usage.