show message for kktix.

master
CHUN YU YAO 2024-03-26 00:10:00 +08:00
parent 13517612c4
commit e68b9da9c7
2 changed files with 9 additions and 7 deletions

View File

@ -7968,7 +7968,13 @@ def kktix_main(driver, url, config_dict, kktix_dict):
if config_dict["advanced"]["play_sound"]["order"]:
if not kktix_dict["played_sound_order"]:
play_sound_while_ordering(config_dict)
kktix_dict["played_sound_order"] = True
if not kktix_dict["played_sound_order"]:
if len(config_dict["advanced"]["kktix_account"]) > 0:
print("搶票成功, 帳號:", config_dict["advanced"]["kktix_account"])
print("基本資料與實名制網址:", url)
kktix_dict["played_sound_order"] = True
if config_dict["advanced"]["headless"]:

View File

@ -757,7 +757,7 @@ def get_default_config():
config_dict["advanced"]["auto_reload_page_interval"] = 0.1
config_dict["advanced"]["reset_browser_interval"] = 0
config_dict["advanced"]["proxy_server_port"] = ""
config_dict["advanced"]["window_size"] = "512,520"
config_dict["advanced"]["window_size"] = "512,580"
config_dict["advanced"]["idle_keyword"] = ""
config_dict["advanced"]["resume_keyword"] = ""
@ -1341,7 +1341,7 @@ def play_mp3(sound_filename):
playsound(sound_filename)
except Exception as exc:
msg=str(exc)
print("play sound exeption:", msg)
#print("play sound exeption:", msg)
if platform.system() == 'Windows':
import winsound
try:
@ -2740,10 +2740,6 @@ def check_maxbot_config_unsaved(config_dict):
global txt_idle_keyword_second
global txt_resume_keyword_second
style = ttk.Style()
style.configure("redStyle.TCombobox", foreground="red")
style.configure("greenStyle.TCombobox", foreground="green")
try:
date_keyword = ""
if 'txt_date_keyword' in globals():