- Introduced a comprehensive CSS file for styling the web interface, including variables for colors, layout styles, and responsive design adjustments. - Added a batch script to automate the process of stopping any existing instances of the web GUI and launching the new instance, along with opening the browser to the appropriate URL.
26 lines
793 B
Python
26 lines
793 B
Python
from douyin_fudai import fudai_analyse
|
|
|
|
try:
|
|
from version import print_version_banner
|
|
except Exception:
|
|
print_version_banner = None
|
|
|
|
class fudai_guaji:
|
|
def __init__(self):
|
|
self.analyser = fudai_analyse()
|
|
|
|
def guaji(self, y_pianyi=0):
|
|
"""y_pianyi 对应y轴高度的偏移值"""
|
|
device_id = self.analyser.operation.select_device()
|
|
if device_id:
|
|
self.analyser.fudai_choujiang(device_id, y_pianyi, True, 5)
|
|
return True
|
|
self.analyser.operation.delay(10)
|
|
self.guaji(y_pianyi)
|
|
|
|
if __name__ == '__main__':
|
|
if callable(print_version_banner):
|
|
print_version_banner("douyin_guaji")
|
|
choujiang = fudai_guaji()
|
|
choujiang.guaji(0) # 运行只需改这里的0,对应是你手机纵轴y的偏移值
|