-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
76 lines (64 loc) · 2.68 KB
/
main.py
File metadata and controls
76 lines (64 loc) · 2.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
from service.app import AppScreenshotTool
from service.taker import AndroidAutoTaker
def run_full_marketing_sequence(package, status):
bot = AndroidAutoTaker(package)
langs = ["fr-FR", "en-GB", "ko-KR", "ja-JP", "zh-CN", "it-IT", "es-ES", "ru-RU", "de-DE"]
for lang in langs:
status.configure(text=f"Initailisation pour \"{lang}\"...")
bot.change_lang_and_restart(lang)
bot.tap_id("currency_input_button_change_currency", 2)
bot.tap_id("dialog_choose_currency_search")
bot.add_text("jpy")
bot.tap_id("item_choose_currency_symbol")
status.configure(text="Screenshot d'accueil...")
bot.tap_id("currency_input_money_amount")
bot.clear_text()
bot.add_text("10")
bot.dark_mode(False)
bot.take_screenshot("01_light_home")
bot.dark_mode(True)
bot.take_screenshot("01_dark_home")
status.configure(text="Screenshot des paramètres...")
bot.tap_id("settings")
bot.dark_mode(False)
bot.take_screenshot("02_light_setting")
bot.dark_mode(True)
bot.take_screenshot("02_dark_setting")
status.configure(text="Screenshot du calcul...")
bot.tap_id("settings_back_button")
bot.tap_id("currency_input_money_amount", 2)
bot.clear_text()
bot.add_text("1000")
bot.dark_mode(False)
bot.take_screenshot("03_light_sum")
bot.dark_mode(True)
bot.take_screenshot("03_dark_sum")
status.configure(text="Screenshot fenêtre de recherche...")
bot.dark_mode(False)
bot.tap_id("currency_input_button_change_currency", 2)
bot.tap_id("dialog_choose_currency_search")
bot.take_screenshot("04_light_search")
status.configure(text="Screenshot de recherche...")
bot.add_text("won")
bot.take_screenshot("05_light_won")
bot.dark_mode(True)
bot.tap_id("currency_input_button_change_currency", 2)
bot.tap_id("dialog_choose_currency_search")
bot.take_screenshot("04_dark_search")
status.configure(text="Screenshot de recherche...")
bot.add_text("won")
bot.take_screenshot("05_dark_won")
status.configure(text="Screenshot de calcul...")
bot.tap_id("item_choose_currency_symbol")
bot.tap_id("currency_input_money_amount", 2)
bot.clear_text()
bot.add_text("1000")
bot.dark_mode(False)
bot.take_screenshot("06_light_choice")
bot.dark_mode(True)
bot.take_screenshot("06_dark_choice")
status.configure(text="Script terminé")
if __name__ == "__main__":
app = AppScreenshotTool()
app.process = run_full_marketing_sequence
app.mainloop()