Ra7eN

FFXI Auto Login Script

Aug 24th, 2021 (edited)
545
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 2.46 KB | None | 0 0
  1. ###
  2. ###
  3. ### Latest standalone version can be found here
  4. ### https://thegamerx.com
  5. ###
  6. ###
  7.  
  8. #RequireAdmin
  9. #Region ;**** Directives created by AutoIt3Wrapper_GUI ****
  10. #AutoIt3Wrapper_Outfile_x64=FFXI-Launcher.exe
  11. #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
  12.  
  13. ;FINAL FANTASY XI AUTO LOGIN AND LAUNCHER
  14.  
  15. ;CONTACT RICKSCORPIO[AT]PROTONMAIL.COM
  16. ;INCEPTION DATE: 3/21/2013
  17. ;EDIT DATES: 6/13/2018,  8/24/2021
  18.  
  19.  
  20.  
  21. ;Path the pol.exe - must have trailing \
  22. $polPath = "D:\steam\steamapps\common\FFXINA\SquareEnix\PlayOnlineViewer\"
  23. $OTPW = 0 ; <=== change this to 1 if using ONE-TIME PASSWORD
  24.  
  25. ;THE FOLLOWING IS FOR .EXE VERSION
  26. ;$polPath = inputbox("Enter Path","Enter path to 'POL.EXE'. INCLUDE TRAILING '/'")
  27.  
  28. ;timeout for window search
  29. $timeOut = 30
  30. ;Class for windows
  31. $PolClassName = "PlayOnlineUS"
  32. ;Square enix login pw (not pol pw)
  33. $PolPW = ''
  34.  
  35. ;Run it, ShellExecute works better
  36. ShellExecute("pol.exe","",$polPath)
  37.  
  38.  
  39. #Include <WinAPI.au3>
  40. ;Wait for the polviewer to popup
  41. WinWait("[CLASS:PlayOnlineUS]","PlayOnline Viewer",$timeOut)
  42.  
  43. Opt("MouseCoordMode", 2) ;1=absolute, 0=relative, 2=client
  44. Opt("PixelCoordMode", 2)
  45.  
  46. Sleep(1000)
  47. MouseMove(400,138,2)
  48. MouseClick("")
  49. sleep(1000)
  50. ;click login button
  51. MouseMove(123,160,2)
  52. MouseClick("")
  53. Sleep(1000)
  54.  
  55. ;click SE PW box
  56. MouseMove(450,206,2)
  57. MouseClick("")
  58. Sleep(1000)
  59.  
  60. ;THE FOLLOWING IS FOR THE EXE VERSION
  61. ;$PolPW = InputBox("Password", "Enter POL or SE PW","","*")
  62. ;click enter se pw box and enter it
  63. MouseMove(313,151,2)
  64. MouseClick("")
  65. Send($PolPW,1)
  66. sleep(1000)
  67.  
  68.  
  69. ;ONE-TIME PASSWORD ENTRY
  70. if $OTPW = 1 then
  71.     MouseMove(408,234,2)
  72.     MouseClick("")
  73.     $2FA = inputbox("One Time PW", "Enter your ONE-TIME Password")
  74.     Send($2FA,1)
  75.     sleep(1000)
  76. EndIf
  77.  
  78.  
  79. ;click ok button
  80. MouseMove(122,149,2)
  81. MouseClick("")
  82. sleep(1000)
  83.  
  84. ;click connect
  85. MouseMove(182,284,2)
  86. MouseClick("")
  87.  
  88.  
  89.  
  90. ;Main Login Game
  91. ;Final Fantasy Game Selection
  92. ;This is a really long wait on some system, adjust accordingly
  93. ;for your system - 45 seconds default.
  94.  
  95.  
  96. ; NO MORE DELAY, LOOP UNTIL COORECT SCREEN COMES UP
  97.  
  98. do
  99.     $search = PixelSearch(85, 84, 117, 98, 0x2A8A95)
  100. until not @error
  101. sleep(1000)
  102. MouseMove(151,159,2)
  103. MouseClick("")
  104.  
  105. ;Play
  106. ; NO MORE DELAY, LOOP UNTIL COORECT SCREEN COMES UP
  107. do
  108.     $search = PixelSearch(79,77, 231,92, 0x323233)
  109. until not @error
  110. sleep(1000)
  111. MouseMove(171,81,2)
  112. MouseClick("")
  113.  
  114. ;Agreement Play
  115. sleep(1000)
  116. MouseMove(204,386,2)
  117. MouseClick("")
  118. Exit(0)
  119.  
Add Comment
Please, Sign In to add comment