Lab of Legends Auto Roller

created by Cyclonus101

Launched June 2/21

This work was original based on my autopassive scrummer script, but with the June 2nd update,
a lot of changes have been made. You no longer need to reselect your champion to avoid using your
initial rerolls. You can now reroll infinitely after champion select.
This work is an update to the original to be functional with the new upgraded labs.

Link to demo: https://gfycat.com/rewardingflamboyantatlanticspadefish

June 2/21
-Got rid of selecting champion, focuses exclusively on finding the correct passive
June 6/12
-Updated GUI to show base delay between searches
-Changed adjustable delay resolution to 25ms instead of 50ms, up to 200ms
-Fixed the visual issue where the passive is double clicked
June 7/21
-Fixed bug where changing passives before changing resolution would not switch image search to new resolution
June 10/21
-Fixed typo in evolution passive icon name
-Changed the delay text and delay dropdown box to align next to each other in the GUI
June 12/21
-Added 1366x768 support
-Fixed some typos
June 24/21
-Added loops to image search to reduce chance of accidentally skipping power
-As a result you may see the mouse click multiple times
June 30/21
-Added new powers to selection (counterfeit production / feral senses / lie in wait)
-Changed background picture to reflect current labs
-Fixed more typos
July 10/21
-Added 1600x900
-Reverted delay resolution to steps of 50ms which seems to provide better accuracy
-Base delay was upped to 300ms
August 8/21
-Riot finally changed sorcery icon, the script has been updated to recgonize slow but steady and sorcery seperately
-Menu starts in the middle of the screen now
-Added auto detect resolution feature

Function: Reroll passives until you find the one you're searchings for Lab of Legends (a Legends of Runeterra game mode)

Required: Only works on windows 7 or newer and requires AutoHotKey to be installed

Instructions:

  1. Download as zip file
  2. Unzip project into a folder
  3. Double click the AutoPassiveRoller.ahk file to start up the GUI (start script from the folder)
  4. Select Resolution (1920x1080 or 2560x1440 or 1366x768 or 1600x900 is currently supported)
  5. Select Passive
  6. Select additional delay if the script runs too fast between scenes
  7. Pick a champ to play in the labs mode
  8. At the passive select screen press CTRL+M to start the script, press CTRL+P to pause, press CTRL+X to exit the script

Warnings: If you change monitor resolution while the script and Legends of Runeterra is running then you should restart the script and Legends of Runeterra. Otherwise it probably won't work.

Some bugs I've discovered so far:

1) If you switch to 2560x1440 you need to select Advanced Preparations in the passive menu again
2) Because Riot decided to reuse the sorcery icon for slow but steady, selecting either as your starter passive will select the first one it sees
3) Sometimes the icon will be skipped over its in a certain positive (I.E middle)
4) Sometimes the wrong passive might be selected
5) Error: Path to File Icon Not found generally means there's a typo in the script or icon image

Hopefully I'll fix them in the future.