| @@ 656-672 (lines=17) @@ | ||
| 653 | else: |
|
| 654 | messagebox.showinfo("Shutdown Timer", "Shutdown timer is Greater than 24hrs.") |
|
| 655 | ||
| 656 | def go(): |
|
| 657 | messagebox.showinfo("AutoWhatsappMessage", |
|
| 658 | "Will open web.whatsapp.com at before 1 minute of Scheduled time and message \ |
|
| 659 | will be send Automatically at Scheduled time exactly Given") |
|
| 660 | try: |
|
| 661 | num = MobNum.get() |
|
| 662 | msg = Entrymsg.get("1.0", "end-1c") |
|
| 663 | hr = hour.get() |
|
| 664 | mini = minutes.get() |
|
| 665 | shut_timer() |
|
| 666 | pywhatkit.sendwhatmsg(num, msg, hr, mini) |
|
| 667 | except pywhatkit.CallTimeException: |
|
| 668 | messagebox.showerror("AutoWhatsAppMessage", |
|
| 669 | "Set Schedule time More than 1 minute from Current Time") |
|
| 670 | except pywhatkit.CountryCodeException: |
|
| 671 | messagebox.showerror("AutoWhatsAppMessage", |
|
| 672 | "Please Ensure the mobile number & Coutry code.") |
|
| 673 | ||
| 674 | sleep_time = Spinbox(tab4, textvariable=sleep, font=cust_font, from_=0, to=86399) |
|
| 675 | sleep_time.place(x=250, y=270, width=80) |
|
| @@ 86-102 (lines=17) @@ | ||
| 83 | else: |
|
| 84 | messagebox.showinfo("Shutdown Timer", "Shutdown timer is Greater than 24hrs.") |
|
| 85 | ||
| 86 | def go(): |
|
| 87 | messagebox.showinfo("AutoWhatsappMessage", |
|
| 88 | "Will open web.whatsapp.com at before 1 minute of Scheduled time and message \ |
|
| 89 | will be send Automatically at Scheduled time exactly Given") |
|
| 90 | try: |
|
| 91 | num = MobNum.get() |
|
| 92 | msg = Entrymsg.get("1.0", "end-1c") |
|
| 93 | hr = hour.get() |
|
| 94 | mini = minutes.get() |
|
| 95 | shut_timer() |
|
| 96 | pywhatkit.sendwhatmsg(num, msg, hr, mini) |
|
| 97 | except pywhatkit.CallTimeException: |
|
| 98 | messagebox.showerror("AutoWhatsAppMessage", |
|
| 99 | "Set Schedule time More than 1 minute from Current Time") |
|
| 100 | except pywhatkit.CountryCodeException: |
|
| 101 | messagebox.showerror("AutoWhatsAppMessage", |
|
| 102 | "Please Ensure the mobile number & Coutry code.") |
|
| 103 | ||
| 104 | sleep_time = Spinbox(win, textvariable=sleep, font=cust_font, from_=0, to=86399) |
|
| 105 | sleep_time.place(x=250, y=270, width=80) |
|