Read montage controls with python library for GUI automation pywinauto. Perform calculation in python and return desired value of StopDistance. Put the value back into montage and send the order using ...
In latest jadx version script support moved into external plugin and bundled with jadx, check this page for installation details. Each part of jadx script is executed at different time or stages.