mirror of
https://github.com/Faraphel/Atlas-Install.git
synced 2025-07-04 19:58:26 +02:00
first choose will be on the last track that got a screenshot
This commit is contained in:
parent
73d40efb45
commit
6273afb582
1 changed files with 4 additions and 3 deletions
|
@ -24,8 +24,7 @@ driver.execute_script("var element = arguments[0]; element.parentNode.removeChil
|
||||||
driver.find_element_by_id("Panel"))
|
driver.find_element_by_id("Panel"))
|
||||||
|
|
||||||
tracks = glob.iglob("../file/Track/*.szs")
|
tracks = glob.iglob("../file/Track/*.szs")
|
||||||
track = next(tracks)
|
track = "none.png"
|
||||||
shutil.copy(track, "./map preview/tmp/" + get_nodir(track))
|
|
||||||
|
|
||||||
|
|
||||||
def save_screenshot():
|
def save_screenshot():
|
||||||
|
@ -36,7 +35,8 @@ def save_screenshot():
|
||||||
|
|
||||||
def skip_to_next():
|
def skip_to_next():
|
||||||
global track
|
global track
|
||||||
os.remove("./map preview/tmp/" + get_nodir(track))
|
if os.path.exists("./map preview/tmp/" + get_nodir(track)):
|
||||||
|
os.remove("./map preview/tmp/" + get_nodir(track))
|
||||||
|
|
||||||
track = next(tracks)
|
track = next(tracks)
|
||||||
while os.path.exists(f"./map preview/image/{get_filename(get_nodir(track))}.png"):
|
while os.path.exists(f"./map preview/image/{get_filename(get_nodir(track))}.png"):
|
||||||
|
@ -45,6 +45,7 @@ def skip_to_next():
|
||||||
shutil.copy(track, "./map preview/tmp/" + get_nodir(track))
|
shutil.copy(track, "./map preview/tmp/" + get_nodir(track))
|
||||||
|
|
||||||
|
|
||||||
|
skip_to_next()
|
||||||
keyboard.add_hotkey('h', save_screenshot)
|
keyboard.add_hotkey('h', save_screenshot)
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
|
|
Loading…
Reference in a new issue