Skip to content

Instantly share code, notes, and snippets.

@zach2good
Last active May 22, 2021 15:47
Show Gist options
  • Save zach2good/dabb2ac06be35996f1de7774fd223595 to your computer and use it in GitHub Desktop.
Save zach2good/dabb2ac06be35996f1de7774fd223595 to your computer and use it in GitHub Desktop.
ffxi_auto_login.py
# Get requirements:
# pip install keyboard pywinauto
# You can wrap this script up as a Windows shortcut:
# Have python.exe in your PATH
# - Make a new shortcut, target: python.exe C:\FFXI\autologin\autologin.py
# - Shortcut Properties > Advanced > Run as administrator
# Change these:
your_password = 'YOUR_PASSWORD_HERE'
your_path_to_windower = r'C:\FFXI\WindowerRetail\Windower.exe --p Default Profile'
your_work_dir = r'C:\FFXI\WindowerRetail'
# ==================================================================
import time
from pywinauto.application import Application
import keyboard
print('> Opening Windower + POL')
app = Application().start(your_path_to_windower, work_dir=your_work_dir)
time.sleep(15)
print('> Selecting Account')
keyboard.press_and_release('enter')
time.sleep(1)
print('> Confirming Account')
keyboard.press_and_release('enter')
time.sleep(1)
print('> Selecting Password Box')
keyboard.press_and_release('enter')
time.sleep(1)
print('> Selecting Password Text Entry Box')
keyboard.press_and_release('up')
keyboard.press_and_release('right')
keyboard.press_and_release('right')
keyboard.press_and_release('enter')
time.sleep(1)
print('> Entering password')
keyboard.write(your_password)
keyboard.press_and_release('enter')
time.sleep(3)
print('> Logging into POL, waiting...')
keyboard.press_and_release('down')
keyboard.press_and_release('enter')
time.sleep(30)
print('> Opening FFXI game menu, waiting...')
keyboard.press_and_release('enter')
time.sleep(15)
print('> Logging into FFXI, waiting...')
keyboard.press_and_release('enter')
time.sleep(1)
keyboard.press_and_release('enter')
time.sleep(1)
keyboard.press_and_release('enter')
time.sleep(15)
print('> Logging into FFXI main screen, waiting...')
keyboard.press_and_release('enter')
time.sleep(10)
print('> Logging into FFXI character')
keyboard.press_and_release('enter')
time.sleep(3)
keyboard.press_and_release('enter')
time.sleep(1)
keyboard.press_and_release('enter')
time.sleep(1)
keyboard.press_and_release('enter')
time.sleep(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment