I know that my script is not very useful especially since TFT mobile exists. However, I had an urge to play it on my TV with my controller.
The scripts found on the internet did not work or worked badly. So I created this mini project to allow to me and for everyone who want it to have a script that works and configure as little as possible.
A debugging system is in place to allow you to play even if your screen is atypical. It's simple and will take you a few minutes. (See Troubleshooting → Mouse position wrong)
You can change the configuration as you wish only if it's possible. (See Planned Hotkeys)
You will be able to play (finally) with the controller your favorite game deported from your PC / Phone. The directional arrows allow you to move on the ground. All TFT shortcuts have been added and can be modified. You can use the left joystick to move the mouse in a circle to get your champion or recover items.
- Download and install AutoHotkey from https://www.autohotkey.com/download/
- Download the Script from my GitHub
- Edit the file in the section
Configuration
(line 25) then add your resolution by changing these two valuesRESOLUTION_X := 1920
andRESOLUTION_Y := 1080
- Save and run
Key (PS4 - XBOX) | Function (By default) | Shortcuts TFT | Editable |
---|---|---|---|
SQUARE - X | Buy XP | f | Yes |
CROSS - A | Left Click | Yes | |
CIRCLE - B | Reroll | d | Yes |
TRIANGLE - Y | Sell | e | Yes |
L1 - LB | Next board | q | Yes |
R1 - RB | Previous board | r | Yes |
L2 - LT | Left Click | Yes | |
R2 - RT | Do nothing | Yes | |
L1 & R1 - LB & RB | Your board | Space | Yes |
L2 & R2 - LT & RT | Deploy / Return to bench | w | Yes |
Directional arrow | Left / Right / Down / Up | No | |
Joystick left | Move the mouse in a circle | No | |
OPTIONS - LIST | Escape / Open menu options | Yes |
Name of the Troubleshooting | Issues |
---|---|
Controller not detected | Normally a window should open and give you the number to replace this variable NUM_CONTROLLER := 1 |
Mouse position wrong | Change this value DEBUG := 0 to 1, change your window mode on TFT to no edge and then restart the script. You'll see a little window that will follow your mouse. It displays the percentage of your location. Get the values on each squares and add these values in their corresponding variable.(line 79-90) Warn ! Take coordinates like this : Up to Down an Left to Right Example (for shop) : AREA_SHOP_X := [x1, x2.., x5] and AREA_SHOP_Y := [y1] |
This script was created for me and for others who would like to have the possibility to play with a controller. You can use an XBOX or PS4 controller, I did not test the others.
Warning : I'm not responsible if Riot decides to ban you for using a 3rd party app. Remember, aI'm not too concerned about using it myself. Hopefully someone finds it at useful.