zwift-login

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.

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.

Zwift is launched just by pressing Launch 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)

 

Enter username and password and press Save

 

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.

zwift-preferences

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 (Watopia or Richmond) and course selection before you launch Zwift.

zwift-hotkeys

If the zwift-hotkeys script is installed in the same folder as zwift-login it will automatically be launched together with Zwift.

TR-Z-move

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

Update 2018-02-05 (version 11):

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

Other command line parameters:

/onlyzwift Will only launch Zwift and not look for any other ZwiftHacks scripts to launch simultaneosly.

 

Prerequisites

Windows PC w/

 

Downloads

zwift-login script with installer (2733 downloads)

Read more about the installer package.


Download individual script files to manually install the script (extract the content of the .zip file)

zwift-login script (784 downloads)

 

History

zwift-login version 19

zwift-login version 19

zwift-login is fixed to launch TR-Z-move together with Zwift if both scripts (zwift-login and TR-Z-move) are located in the same folder. Download the update Get the new version 19 at the zwift-login page. ...
zwift-login version 18

zwift-login version 18

zwift-login now works regardless of which language you have set in the Zwift Launcher. That’s it. Download the update Get the new version 18 at the zwift-login page. ...
zwift-login version 17

zwift-login version 17

zwift-login now shows warning icons if a specific world is set or minimal_ui is enabled in prefs.xml The new version also checks if ZwiftLauncher is running elevated at launch, when launching Zwift, and when pressing “Close ...
Bug fixing zwift-login (version 15)

Bug fixing zwift-login (version 15)

zwift-login got a few fixes to make it more robust when the Zwift status page cannot be reached, and to make sure that it closes when it has launched Zwift. Not the most exciting changes, I ...
Changed Zwift Launcher – updated zwift-login

Changed Zwift Launcher – updated zwift-login

zwift-login has been updated to support the Zwift Launcher which was changed in the update from Zwift 2018-04-26. Download the update Get the new version 14 at the zwift-login page. ...
A Win7 bug fix for zwift-login

A Win7 bug fix for zwift-login

zwift-login has been updated to fix a problem which was seen on some Windows 7 PC’s. Download the update Get the new version 13 at the zwift-login page. ...
Changes to the Zwift launcher, changes to zwift-login

Changes to the Zwift launcher, changes to zwift-login

The Zwift Launcher now have a Let’s Go button where it used to have a Ride On button. zwift-login has been fixed to handle this. Download the new version from the zwift-login page. Zwift has ...
Bug fix version 9 of zwift-login

Bug fix version 9 of zwift-login

I just made a small update to zwift-login so it works with the latest version of the Zwift Launcher.   zwift-login could not detect the Zwift Launcher window and would hang while waiting for Zwift Launcher ...
zwift-login is fixed to handle the new version of Zwift

zwift-login is fixed to handle the new version of Zwift

Today Zwift sent out a new version which changes the launcher screen and broke zwift-login. Now there is an updated version which should work just fine. It was a bit tricky…. ...

37 comments

    1. Download again (I just put a new version up for download). Run zwift-login.ahk like this:

      AutoHotkey.exe zwift-login.ahk /launch

      This version accepts the following parameters:

      /launch
      Launches Zwift
      /onlyzwift
      Will only launch Zwift and not look for any other ZwiftHacks scripts to launch simultaneosly.

  1. Hi, I’m having trouble with this. I’ve downloaded the update and it’s opening the Zwift program fine, but it’s not hitting the ‘Let’s Go’ button.

    1. It may be that it is resolved simply by closing the Zwift launcher (by right clicking the icon in the notification area and choosing exit) because Zwift sometimes end up in a special state after an update. Then Zwift and the Zwift launcher run with elevated rights (as administrator) and does not respond to keypresses and command from another process (zwift-login) which is not elevated itself.

      If this does not help, please let me know and I can look further into it.

      1. Hi Jesper!

        Thanks for the reply and the help – though I confess I haven’t carried it out. I uninstalled everything and then re-installed it and it seems to work now, though I can’t put my finger on what I’ve done differently.

        Thanks for the system you’ve (and anyone else has) put together, it is helpful.

        Jx

  2. How can I use zwift-login if I install Zwift app on a custom path like D:\Zwift

    I found the path dir on row 525-542, but I can’t modify it by myself

    1. You have two options:
      1) Modify the script
      2) Make the standard location for Zwift a symbolic link to your custom location

      Here is how to do it:

      Option 1 – Modify the script

      Open your copy zwift-login.ahk in Notepad and change the script in line 527, 534, and 540 from
      EnvGet, pf, ProgramFiles(x86)
      to
      pf := "D:"

      You can simply use search and replace to make the change.

      Option 2 – Make a symbolic link

      Open a Cmd or Powershell window (as administrator).
      Use mklink to create the link:

      mklink /D "%ProgramFiles(x86)%\Zwift" "d:\zwift"

  3. Hi,
    is it possible to create different shortcuts for different users, f.e. one Desktop Icon that starts login with my account and another icon that starts Zwift with a different account? I’ve already tried to create to versions of the Zwift-login.ahk file which refer to two different ini files, but when I start it from the command line (autohotkey.exe “C:\Users\xyz\Documents\Zwift\Scripts\zwift-login-xyz.ahk” /launch) Zwift always logs in with the latest active account. Is there any solution? Thanks in advance

    1. Yes, it can work. The solution is to never let Zwift remember the user but instead only store usernames and passwords in zwift-login.

      To make Zwift forget the user you can do the following:

      Launch Zwift from the start menu
      In the ‘Welcome!’ screen with the ‘Let’s go’ button press ‘Change user’
      Enter your password, remove the check mark from ‘Remember me’, and press ‘Log in’
      When the ‘Welcome!’ screen appears again, close it by clicking on the X in the top right corner.

  4. Hi,
    the login script doesn`t pass the Sign-in screen any longer. I have to sign in manually; deinstall and reinstall of the script as well as of Auto Hotkey didn`t make things better. Any suggestions appreciated, thanks a lot!

    1. It may be that it is resolved simply by closing the Zwift launcher (by right clicking the icon in the notification area and choosing exit) because Zwift sometimes end up in a special state after an update. Then Zwift and the Zwift launcher run with elevated rights (as administrator) and does not respond to keypresses and command from another process (zwift-login) which is not elevated itself.
      If this does not help, please let me know.

  5. Hi Jesper,
    thanks for the reply; unfortunately closing the Zwift Launcher doesn`t help, I tried this option already as you proposed it a few posts before, but without success. I forgot to mention it in my first request.

    1. If you are using the latest version of zwift-login and has restarted your PC I don’t have a good explanation why it doesn’t work. I just tested it this morning without any problems. I’ll have to think about what you can try next.

  6. I Love this!
    My Zwift takes so long to load once i get into my cave that i often miss events.
    Now i can tell google home to load & login while im still putting on my gear.

    1. No, that hasn’t been built into zwift-login. I’ll take a note of this as a possible new feature (but I won’t promise anything).

  7. I can’t seem to solve an issue with this script, each time after I complete a ride with ‘save and exit’ or ‘discard’ when the zwift window closes, I see the zwift-login ahk window still up and an error message flashes up (see link for screenshot). Any ideas why this might be?

      1. It’s not a problem I have seen before but let’s try to figure out what causes it.

        I have some questions for you:

        1. If you exit Zwift before you run zwift-login (right click the Zwift icon in the systray and click ‘Exit’) is it still the same?
        2. How do you launch zwift-login – from the Windows menu?
        3. Which version of Autohotkey is installed on your PC?
        4. Which version of Windows does your computer have?
        1. Thanks for responding!
          1. I tried this once and it did not have an effect.
          2. I launch it with a desktop shortcut; the program is located in a folder with its ini file etc. on the windows system drive, and the desktop shortcut points to the .ahk file
          3. 1.1.22.2
          4. Windows 10 home

          1. Jesper thanks but after upgrading AHK the same issue persists. I might try to step through the script to debug or reinstall zwift altogether

          2. What it the text in the status bar of zwift-login when the error message appears? Is it ‘Pressing Ride Button…’?
            It will tell me where in the code to look for the problem.

    1. It really should be

      {path to autohotkey.exe} zwift-login.ahk /launch

      unless the directory where autohotkey.exe is installed is already in the PATH variable on your computer.

      You can run this from a shortcut you create, from a bat/cmd file, from the ‘Run’ window (Win+R), from Task Scheduler and in many other ways.

  8. I don’t know much about programming at all. Where is the command line parameter, and where exactly do I put “autohotkey.exe zwift-login-ahk /launch” in the text of “zwift-login-ahk”?

    Thanks

    1. You can always just start zwift-login from the installed shortcut in the Windows Start menu.

      If the talk about command line arguments is nonsense for you then you probably don’t need this advanced feature at all 😉

      The command line usage is definitely what I would call advanced usage. You can run this from a shortcut you create, from a bat/cmd file, from the ‘Run’ window (Win+R), from Task Scheduler and in many other ways if you are into automating things on your computer.

  9. Hi another great tool! I can’t get it to run TR-Zmove when it launches though? All scripts are in scripts folder: trzmove, preferences and login? Any ideas? Thanks!

Leave a Reply

Your email address will not be published. Required fields are marked *