zwift-login is a simple utility which basically lets you launch Zwift without having to click any button or fill any fields in the login sequence of the game.
It can be used to launch Zwift and login directly from the command line, too.
This is how you use it…
See it demonstrated in a screencast by following this link. Otherwise, just try it – it is really simple to use.
Zwift is launched just by pressing Launch Zwift:
Launching Zwift by the press of a button…
Once the password is stored (it will be saved in a file on your harddrive) it only takes a single button press to launch Zwift and feed it your login details if you have not stored them directly in Zwift.
First time a bit of setup is required…
The first step is to store your username and password, so press Store Password (only necessary at first run or if you change your Zwift password).
Now the Launch Zwift button will be enabled. Naturally, you won’t have to save the password again unless you change it in Zwift.
Zwift status and preferences alerts
At the bottom of the window you can see the current Zwift status (from the Zwift status page).
Right above that you will see alerts for certain settings in prefs.xml, which it is good to be aware of before launching Zwift of if you did not intend to have them activated in this session:
- A world icon will be shown if the world hack is used
- A full screen icon (looking like an empty frame) will be shown if the Minimal UI-setting is set
It works together with other ZwiftHacks…
zwift-login plays together with some of the other tools here on the site.
If the zwift-preferences script is installed in the same folder as zwift-login there will be a button that you can launch it with. That way you can easily make your choice of e.g. trainer resistance level, world and course selection before you launch Zwift.
If the zwift-hotkeys script is installed in the same folder as zwift-login it will automatically be launched together with Zwift.
If the TR-Z-move script is installed in the same folder as zwift-login it will automatically be launched together with Zwift.
Using as a command line tool
zwift-login accepts a command line parameter (/launch) which makes it launch Zwift automatically with the need for pressing a button. This can be used e.g. for scheduling an unattended start of Zwift.
Run zwift-login.ahk like this:
AutoHotkey.exe zwift-login.ahk /launch
It will launch with the stored settings of the last user selected in zwift-login.
To specify which user (1-5) you can combine /launch with the /user= parameter (see below) or use the short form /launch=1 etc.
AutoHotkey.exe zwift-login.ahk /launch /user=1
AutoHotkey.exe zwift-login.ahk /launch=1
To open zwift-login with a specific user selected:
Use one of the parameters /user=1, /user=2, /user=3, /user=4, and /user=5.
AutoHotkey.exe zwift-login.ahk /user=1
Other command line parameters:
/onlyzwift Will only launch Zwift and not look for any other ZwiftHacks scripts to launch simultaneosly.
Using with non-standard Zwift setups
Even if you have Zwift installed in a location different from the default (which is %ProgramFiles(x86)\Zwift%, typically C:\Program Files (x86)\Zwift) or have the Zwift document\data files in a non-default location (which is Documents\Zwift) you can still use zwift-login if you set up a couple of environment variables: ZWIFTPROG and ZWIFTDOC.
If you have Zwift installed in a location different from the default:
Add an environment variable called ZWIFTPROG to your WindowsWindows The Windows operating system from Microsoft. account to point to your Zwift program folder:
You may have to log out of Windows and log in again after defining it for the environment variable to be known.
After this zwift-login will always use the value of ZWIFTPROG as the location of the Zwift program files instead of the default location.
If you have your Zwift documents (e.g. prefs.xml) in a location different from the default:
If you have your Zwift data files/documents in another folder than the default Documents\Zwift folder you can similarly control where zwift-login and zwift-preferences look for the data files (prefs.xml) with a new ZWIFTDOC environment variable (this is also supported in zwift-preferences).
Google can tell you how to add/modify environment variables:
Windows PC w/