Decks's alphabetical sorting

Here you can post about your scenario's, mods, custom maps and YouTube channels!
Italy hellpunch
Crossbow
Posts: 15
Joined: Jul 15, 2022

Re: Decks's alphabetical sorting

Post by hellpunch »

andrewgs wrote:
01 Feb 2023, 16:13
python + AHK script to loop through decks and copy them in alphabetical order
https://github.com/andrewgsavage/aoe3_d ... ck_sort.py
Will need modifying for other resolutions
Hey andrew awesome work for that damage tool calculator, can i ask you a few questions about it?
Great Britain andrewgs
Musketeer
Posts: 97
Joined: Dec 15, 2020

Re: Decks's alphabetical sorting

Post by andrewgs »

hellpunch wrote:
03 Feb 2023, 15:02
andrewgs wrote:
01 Feb 2023, 16:13
python + AHK script to loop through decks and copy them in alphabetical order
https://github.com/andrewgsavage/aoe3_d ... ck_sort.py
Will need modifying for other resolutions
Hey andrew awesome work for that damage tool calculator, can i ask you a few questions about it?
viewtopic.php?p=571358#p571358
User avatar
Italy Garja
Retired Contributor
Donator 02
Posts: 9730
Joined: Feb 11, 2015
ESO: Garja

Re: Decks's alphabetical sorting

Post by Garja »

andrewgs wrote:
01 Feb 2023, 16:13
python + AHK script to loop through decks and copy them in alphabetical order
https://github.com/andrewgsavage/aoe3_d ... ck_sort.py
Will need modifying for other resolutions
Sorry for bumping old thread but I wanted to try this again.
How do I launch this script once I've configured it? Does the homecity.xml gets saved with the new deck order or do I have to save it in game?
Image Image Image
Great Britain andrewgs
Musketeer
Posts: 97
Joined: Dec 15, 2020

Re: Decks's alphabetical sorting

Post by andrewgs »

load up the home city screen where you select/copy decks, then execute the script

you'll need to change the x,y positions on Line 25 onwards so the script can click the correct button

install python + AHK https://ahk.readthedocs.io/en/latest/quickstart.html
use a python terminal, move mouse to each button and run

Code: Select all

from ahk import AHK

ahk = AHK()

ahk.mouse_position  # Returns a tuple of mouse coordinates (x, y) (relative to active window)
 
to get the position for copying into the script

Who is online

Users browsing this forum: No registered users and 4 guests

Which top 10 players do you wish to see listed?

All-time

Active last two weeks

Active last month

Supremacy

Treaty

Official

ESOC Patch

Treaty Patch

1v1 Elo

2v2 Elo

3v3 Elo

Power Rating

Which streams do you wish to see listed?

Twitch

Age of Empires III

Age of Empires IV