Skip to content

Commit

Permalink
show message for kktix.
Browse files Browse the repository at this point in the history
  • Loading branch information
hahamic committed Mar 25, 2024
1 parent 1351761 commit e68b9da
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
8 changes: 7 additions & 1 deletion chrome_tixcraft.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]:
Expand Down
8 changes: 2 additions & 6 deletions settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"] = ""
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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():
Expand Down

0 comments on commit e68b9da

Please sign in to comment.