0% found this document useful (0 votes)
69 views33 pages

Computer Project Samples 23-2024

Helping papers

Uploaded by

kumari410priya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
69 views33 pages

Computer Project Samples 23-2024

Helping papers

Uploaded by

kumari410priya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 33
PROJECT REPORT FOR THE PARTIAL FULLFILLMENT OF REQUIREMENT OF AISSE 2022-2023 ON MESSAGE SCHEDULER BY MOHAMMAD FAIZ (BATCH 2022-23) GUIDED AND VETTED BY SHRI S.K. MUKHERJEE (HEAD OF THE DEPT. COMPUTER SCIENCE) AT ATOMIC ENERGY CENTRAL SCHOOL-1 JADUGODA CERTIFICATE it ls Certified That Project Work and Report Titled “Message Scheduler” Submitted by Mohammad Faiz of Class XII-B, Roll No. 11, CBSE Roll No__2267.9494 Studying In Atomic Energy Central School-1 Jadugoda for The Partial Fulfilment of The Requirement of AISSCE 2022-2023. This Work Is Carried Under My Supervision & Guidance Through Online. | WISH FOR HIS BRIGHT FUTURE!! is ; fay MDMA NALA? S.K. MUKHERJEE N.K. BLAHATIA. PGT(SS), Comp Dept. - epee Yomoto Fea ACKNOWLEDGEMENT | Mohammad Faiz would like to express my special thanks of gratitude to my teacher Shri $.K. Mukherjee as well as Principal Shri N.K. Blahatia who gave me the golden opportunity to do this wonderful project on the topic “Message Scheduler,” which also helped me in doing a lot of research and | came to know about so many new things. | am thankful to them. Secondly, | would like to thank my parents and friends who helped me a lot in finishing the project within the limited time. |. am making this project not only for marks but to also increase my knowledge. THANKS AGAIN TO ALL WHO HELPED ME. INDEX >» Overview of python > Need for the project > Requirements Modules Used Source code Screenshots Shortcomings Bibliography OVERVIEW OF PYTHON Python is a general-purpose object-oriented programming language with _ high-level programming capabilities. It has become famous because of its apparent and easily understandable syntax, portability and easy to learn. Python is a programming language that includes features of C and Java. It provides the style of writing an elegant code like C, and for object- oriented programming it offers classes and objects like Java. Some Facts about Python e Python was developed in the late eighties, ie., late 1980's by Guido Van Rossum at the National Research Institute for Mathematics and Computer Science in the Netherlands as a successor of ABC language capable of exception handling and interfacing. e Python is derived from programming languages such as ABC, Modula 3, small talk, Algol-68. e Van Rossum picked the name python for the new language from a TV show, Monty Python’s Flying Circus. e Python page is a file with a ‘py’ extension that contains could be the combination of HTML Tags and python scripts. ¢ In December 1989 the creator developed the first python interpreter as a hobby and then on 16 October 200, python 2.0 was released with many new features. © On 3'4 December 2008, python 3.0 was released with more testing and includes new features. ¢ Python is an open-source scripting language. Python is an open source, which means that anyone can download it freely from www.python.org and use it to develop programs. Its source code can be accessed and modified as required in the project. ¢ Python is one of the official languages at Google. Why only Python? Give some Characteristics and features of python. Vi. vil. ‘Ml. Python is gaining good popularity in the programming community, there are many reasons behind this. Interpreted Language: Python is processed at runtime by Python Interpreter. Object-Oriented Language: It supports object- oriented features and techniques of programming. Interactive Programming Language: Users can interact with the python interpreter directly for writing programs. Easy language: Python is easy to learn language especially for beginners. Straightforward Syntax: The formation of python syntax is simple and straightforward which also makes it popular. Easy to read: Python source-code is clearly defined and visible to the eyes. Portable: Python codes can be run on a wide variety of hardware platforms having the same interface. Scalable: Python provides an improved structure for supporting large programs then shell-scripts. 06 What you can do with python? Python is commonly used for developing websites and software, task automation, data analysis, and data visualization. Since it’s relatively easy to learn, Python has been adopted by many non- programmers such as accountants and scientists, for a variety of everyday tasks, like organizing finances. Some of the most popular web applications like Instagram, YouTube, Spotify, all has been developed in python and you can also develop next dynamic software by using python language Is Python developer a promising future? Python is not only one of the most widely used programming languages in the world, but it also has some of the most promising job prospects. The need for Python programmers is growing yearly. This high-level programming language is well- liked for a reason. NEED FOR THE PROJECT Technology. the application of scientific knowledge to the practical aims of human life or, as it is sometimes phrased, to the change and manipulation of the human environment. The need of this technology comes when someone has to message a person at a scheduled time but the user is hell busy in his works and forgets to message. This is where this program comes in action and reduces human efforts. When the user wants to message a person on a special occasion, this program will help him doing the work more efficiently. Thereby taking less effort from the user and making tasks to be done effectively and on time. This GUI provides the user a dynamic user experience and is most beneficial technology in current period. REQUIREMENTS Hardware Requirements e Monitor e Keyboard e Mouse e CPU Recommended System Requirements ¢ OS: Windows 10 or above e Processor: Intel Core i5 ¢ HDD Space: 1GB @ RAM: 8GB Software Requirements IDLE (Python 3.11.0 64 bit) ° SQL ¢ WhatsApp Web © Internet Connection ee PEER ER EE MODULES USED import pywhatkit import pyautogui as pg from tkinter import * import threading from PIL import ImageTk, Image from tkinter import messagebox import mysql.connector import time pywhatkit pyautogui pg ba ouine-iy * baie -rle Pal] 2am EAL eee) tkinter ceer Ie La eb eT needa time OURCE import pywhatkit import pyautogui as pg from tkinter import * import threading from PIL import ImageTk,lmage from tkinter import messagebox import mysql.connector import time new = Tk() new.overrideredirect(True) new.eval('tk::Place Window . center’) w= 500 h= 300 screen_width = new.winfo_screenwidth()the screen screen_height = new.winfo_screenheight() = (screen_width / 2) - (w/ 2) = (screen_height / 2) - (h/ 2) Pew.geometry("Yodx%ad+%od+%ed' % (w, h, x, y)) Image-open("md1 -png") picd = 0 = picO.resize((500, 450)) resized mod_picd = Label(new, image=mod_picO).pack() ImageTk.Photolmage(resized0) image! = Photolmage(file="c2,png') image? = Photolmage(file='c1 .png’) for i in range(6): Label(new,image=image 1 ,border=0, relief=SUNKEN).place(x=210,y=270) Label(new, image=image2, border=0, relief=SUNKEN).place(x=230, y=270) Labellnew, image=image2, border=0, relief=SUNKEN).place(x=250, y=270) Label(new, image=image2, border=0, relief=SUNKEN).place(x=270, y=270) new.update_idletasks() time.sleep(0.5) Label(new, image=image2, border=0, relief=SUNKEN).place(x=210, y=270) Label(new, image=image1, border=0, relief=SUNKEN).place(x=230, y=270) Labelinew, image=image2, border=0, relief=SUNKEN).place(x=250, y=270) Label{new, image=image2, border=0, relief=SUNKEN).place(x=270, y=270) new.update_idletasks() time.sleep(0.5) Lobel(new, image=image2, border=0, relief=SUNKEN).place(x=210, y=270) Label(new, image=image2, border=0, relief=SUNKEN).place(x=230, y=270) Label(new, image=image1, border=O, relief=SUNKEN).place(x=250, y=270) Label(new, image=image2, border=0, relief=SUNKEN).place(x=270, y=270) new.update_idletasks() time.sleep(0.5) Label(new, image=image2, border=0, relief=SUNKEN).place(x=210, y=270) Label(new, image=image2, border=0, relief=SUNKEN).place(x=230, y=270) Label(new, image=image2, border=0, relief=SUNKEN).place(x=250, y=270) Label(new, image=image1, border=0, relief=SUNKEN).place(x=270, y=270) new.update_idletasks() time.sleep(0.5) def main_window(): new.destroy() win = Tk() win.configure(bg="#Fff") win.geometry("1 200x700+380+150") win.resizable(False,False) win.overrideredirect(True) Frame(win,width=600,height=700,bg='black',border=0) wilteup \wrtteup.arid(row 0,column=0) jead Label(writeup,text="Welcome’,bg="black’,fg="white’,border=0, fo wt (‘Georala’,20,'bold)) head.place(x 30,y 40) head! ~ Label(writeup,text="to MossageScheduler’fg='white',bg="black’ border=0,font=('Georgia’,20)) head I place(x=200,y=40) Framelwrlteup,width=240,height=6,bg="white').place(x=40,y=80) Label(writeup,text="HelloUserl!",bg='black’fg="white’ border=0,font=(' arial’, 1, bold’)).place(x=20,y=150) Label(writeup,text="You might be wandering that what is the use of this GUI", bg="black’ fg="white’ border=0,font=(‘Century’,1 1)).place(x=20, y=210) Label(writeup,text="This GUI is build for the people who are hell busy" bg="black’fg="white' ,border=0,font=('Century’,1 1))-place(x=20,y =250) Label(writeup,text="in their work and even forgets to wish their loved one's.",bg="black’ fg="white',border=0,font=(‘Century',1 1)).place(x=20, y=280) Label(writeup,text="This is where my GUI makes your work more easy" bg='black',fg="white’,border=0,font=(‘Century’,1 1)).place(x=20,y =340) Label(writeup,text="Just schedule your message and your text ".bg='black’ ig='white’ border=0,font=('Century’,1 1))-place(x=20,y=37 0) Label(writeup,text="will be sent without any delay”, bg="black’ fg="white’ border=0,font=(‘Century’,1 1))-place(x=2 0,y=400) Label(writeup,text=" feature." bg='black’fg= 0,y=470) lere you get a SPAM white’, border=0,font=('Century’,11)).place(x=2 14 Label(writeup,text="An additional feature enhancing your experience!!",bg="black’,fg='white' ,border=0,font=('Century',1 1)).place( x=20,y=500) Label(writeup,text="It's better to build yourself rather than copying it from ‘ others.",bg='black’ fg='white' border=0,font=('Century’,1 1)).place(x=20, y=630) Label(writeup,text="Md.Faiz.",bg='black',fg='white' border=0,font=('Ce ntury’,1 1)).place(x=20,y=660) Label(win,text="Enter Details.’,border=0,fg='dark green',bg="#fff’ font=(Agency FB',30)).place(x=620,y=30) frame = LabelFrame(win,tex! Name',padx=60,pady=5,bg="##ff") frame.place(x=670,y=140) user=Entry(frame,width=10,fg="black'border=0,bg='white’,font=('Micro soft Yohei UI Light’,11)) user.grid(row=0,column=0) user.insert(0,'Name') Frame(frame,width=250,height=2,bg='bl jack’).place(x=-60,y=30) frame2 = LabelFrame(win,tex Number',padx=60,pady bg: frame2.place(x=670,y=230) num=Entry(frame2,width=1 0,fg='black’,border=0,bg='white' font=(‘Micr osoft Yahei UI Light’,1 1)) num.grid(row=0,column=0) num.insert(0,'Ph. Number’) Frame(frame2,width=250,height=2,bg='black’).place(x=-60,y=30) frame3 = LabelFrame(win,text="Enter Hour',padx=60,pady=5,bg="#fff") frame3.place(x=670,y=320) hour=Entry(frame3,width=1 0,fg='black',border=0,bg='white' font=('Mic rosoft Yahei UI Light’,11)) hour.grid(row=0,column=0) hour.insert(0,'Format: hh') Frame(frame3,width=250,heigh=2,b9='black’)place(x=-60,y=30) frame3 = LabelFrame(win,text='Enter Min’ padx=60,pady=5,bg="#fff") frame3.place(x=670,y=410) min=Entry(frame3,width=10,fg='black’ border=0,bg= rosoft Yahei UI Light’,11)) min.grid(row=0,column=0) min.insert(0,'Format: mm’) Frame(frame3,width=250,height=2,bg="black’).place(x=-60,y=30) ‘white’ font=('Mic frame4 = LabelFrame(win,text='Enter Message',padx=60,pady=5,bg="'#fff") frome4.place(x=670,y=500) msg=Entry(frame4,width=10,fg='black’ ,border=0,bg="white’ font=('Mic rosoft Yahei UI Light’,11)) msg.grid(row=0,column=0) msg.insert(0,'Message’) Frame(frame4,width=250,height=2,bg='black’).place(x=-60,y=30) im1 = LabelFrame(win,border=0,relief='groove') im1.place(x=960,y=-10) pic = Image.open("st9.png") resized] = pic.resize((160, 160)) mod_pic = ImageTk.Photolmage(resized1) fin = Label{im1, image=mod_pic) fin.pack() im2 = LabelFrame(win,border=0,relief="groove’) im2.place(x=960,y=190) Pic2 = Image.open("st] 2.png") resized2 = pic2.resize((160, 160)) mod_pic2 = ImageTk.Photolmage(resized2) fin? = Label(im2, image=mod_pic2) fin2.pock!) im} = LobelFrame|winborder=0,relief="groove') im3.place(x=960,y=390) pic3 = Image.open("st19.png") resized3 = pic3.resize((160, 160)) mod_pic3 = ImageTk.Photolmage(resized3) fin3 = Labellim3, image=mod_pic3) fin3.pack() m4 = LabelFrame(win,border=0,relief="groove!) imd.place(x=960,y=590) picd = Image.open("top1.jpg") resized = picd.resize((160, 160)) mod_picd = ImageTk Photolmage(resized4) find = Lobelim4, image=mod_pic4) fin4.pack() im5 = LabelFrame(winborder=0,relief="groove’) im5.place(x=1160,y=150) pic5 = Image.open("dynamic].jpg”) resized5 = pic5.resize((40, 400)) mod_pic5 = ImageTk.Photolmage(resized5) fin5 = Labellim5, image=mod_pic5) fin5.pack{) def exitloop(): win.destroy() ig = Photolmage(file='remove.png’) bin=Button(win,image=ig,width=25,height=25,border=0,command=ex itloop) btn.place(x=1172,y=0) my_string_number =" main(): def port phonenumbers global my_string_number name = user.get() number = num.get() time_hour = hour.get() time_min = min.get() message = msg.get() time = time_hour + ":" + time_min h=[l,'2,,'3' 4, '5','6),'7','8', 9, "105, "11', 12", 13,14, "15', 16, "17, 18", '19', '20'/21', '22', '23', '24'] "77,8, 9, '10', 11", '12', '13', 141, '15', 16), 177,181, '19', '20''21, "25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38", '39', '40', '41', '42', ‘43! '45','46', "47", '48','49','50', '51', '52', '53', '54', '55', '56', '57', '58', '59', '60'] or number == " or time_hour == " or time_min ==" or messagebox.showerror(‘Error’, Please Enter All Details!!') elif (number == 'Ph. Number’ or time_hour == "Format: hh" or time_min == Format: mm’): messagebox.showinfo("Info","First Clear All Data") #checking valid number elif len(number) <10: messagebox.showerror''Error’, ‘Enter a Valid Number!!’) elif len(number) >10: messagebox.showerror('Error’, ‘Enter a Valid Number!) elif len(number) == 10: my_string_number = '+91' + '' + number my_number = phonenumbers.parse(my_string_number) st = phonenumbers.is_possible_number(my_number) if (st == False): gebox.showerror('Error’, e min inm and st = ‘Enter a Valid Number!!') True): has been scheduled mess elif (time hour in h and tim gebox.showinfo('Info', messo! "Your message successfully.”) time hour int(hou! fime_min = int(min.get()) pywhatkit.sendwhatmsg|str(my string_number), str(message), time_hour, time_mi time_min) time_hour= pa.press("Send”) # Connecting with database con = mysqkconnector.connect{host="localhost’ posswd="faiz@123#", user='root’,auth_plugin="mysql cur = con.cursor() |_native_password’) cur.execute("CREATE DATABASE IF NOT EXISTS data") cur.execute("USE data") cur.execute("CREATE TABLE IF NOT EXISTS records(Name varchar(20) PRIMARY KEY,Num varchar(15),Time varchar(5),Message varchar(100))") 5 = 'INSERT INTO records VALUES(%s,%s,%s,%5)' t = (name,number, time,message) cur.execute(s, t) con.commit() con.close() "Enter Time In Correct Format") messagebox.showerror{"Error def clear(): user.delete(0,END) num.delete(0,END) hour.delete(0,END) min.delete(O,END) msg.delete(0,END) del spombtn(): win.destroy() import pyautogui as spam import time import threading global Ib root = Tk() roottitle("SPAM") root.iconbitmap('spam.ico') root.geometry("364x990+1540+30") rootmoxsize(width=364, height=990) rootmminsize(width=364, height=990) root.configure(bg='black’) imé = LabelFrame(root, border=0, relief="groove’) im6.place(x=0, y=0) picé = Image.open("I41.png") resizedé = pic6.resize((364, 480)) mod_pic6 = ImageTk.Photolmage(resized6) find = Label(im6, image=mod_picé6) finé.pack() Frame(root, width=8, height=490, b Frame(root, width=364, height=8, bg="black’).place(x=" Label(root, text="NUMBER OF MESSAGES", fg="white", bg='black’, font=('NSimSun', 20)).place(x=30, y=520) tum = Entry(root, width=35, fg='red', bg="white’) num.place(x=40, y=580) Label(root, text="—ENTER YOUR MESSAGE", bg="black”, fg="white”, font=('NSimSun’, 20)).place(x=30, y=640) msg = Entry(root, width=35, fg="red", bg='white’) ™sg.place(x=40, y=700) at spammsa(): flag = True number = num.get{) message = msg-get() if number != ": flag = True # Applying error - handling method try: # try converting to integer int(number) except ValueError: flag = False # flag check if flag: pass else: messagebox.showerror("error" ‘Put An Integer In First Field’) if (number == " and message ! messagebox.showerror("! Error" ;"Please Fill In Number Of Message Field”) elif (number != " and message == "): Pecos showerror("Error","Please Fill Message Fieldl!") elif (number == " or message "): naengobaaoweHueCenar Pins Fill Both The Fields! ") elif (flag == True and message !="): messagebox.showinfo("info","You have 15 to go to your messenger cand click.") i=0 print("You have 15 seconds to go to your messenger and click !") time.sleep(15) while i < int(number): spam.typewrite(message) spam.press('Enter’) i+=1 oot, text="SPA M", padx=50, pady=3, rellef='raised’, yrron(t voy ‘ 1: i merwidth= 4, BO red’, {g='white’, command=lambda: treading Thread{terget=spammsg) start} placal =100, y=930) jabel(root, text "--> SPAM ALERT -..", bg='black’, (Gabriole’, 18, 'bold)).place(x=80,y=760) font 7 el got,text="THIS IS JUST FOR EDUCATIONAL PURPOSE AND FUN nTHIS }ARRASS PI y=830) root mainloop|) IS NOT TO USE FOR HAZARDOUS THINGS\nOR TO. EOPLE BY SPAMMING." bg="black’, fg='orange').place(x=5, def bistory(): win.destroy() from tkinter import ttk window = Tk() window.title("Manage History") window.geometry("750x340") window.configure(bg="white") window.resizable(False, False) window.iconbitmap('data.ico’) # Connecting with database con = mysql.connector.connect(host='localhost’, passwd='faiz@123#", ‘user="root',database='data’,auth_plugin='mysql_native_password') cur = con.cursor() cur.execute("SELECT * FROM records") data = cur.fetchall() # tree view Style = ttk.Style() style.theme_use('default') gyleconfigure('Treeview", background="white", foreground="black”, “pwheight=25,fieldbackground="white") gylemap( Treeview, background=|('selected', '#125353')}) tree_frame = Frame(window) tree_frame.place(x=5, y=10) # Treeview Scrollbar tree_scroll = Scrollbar(tree_frame) tree_scroll.pack(side=RIGHT, fill=Y) # Create Treeview tr = tk.Treeview(tree_frame, yscrollcommand=tree_scroll.set) trv.pack() tree_scroll.config(command=trv.yview) trvftcolumn’] = 1", '2','3','44/5!) trv['show'] = ‘headings’ trv.column('1', width=50, anchor='c') trv.column('2', width=180, anchor trv.column('3', wid! trv.column('4’, width=100, anchor='c’) trv.column('S', width=206, anchor='c’) trv.heading('I’, te: trv.heading('2', tex! Irvheading('s', text=" ttv.tag_configure('odd', background="#a5eccb") trv.tag_configure[‘even’, background="#1 d8b78’) my_tag = ‘odd’ iz0 vinsert”, ‘end’, iid=dt[0], valves=(i, dt[0], dif], dt[2],d1(3)), togs=(my_tog)) def remove_one(): conn = mysql.connector.connect(host='localhost', posswd="foiz@123#", user="root", dotobase="date',auth_plugin='mysq|_native_password’) curr = conn.cursor() x = trv.selection()[0] sql = DELETE FROM records WHERE Name=%s' curr.execute(sql,(x,)) conn.commit() trv.delete(x) con.close() messagebox.showinfo('Info',"Your record has been deleted.”) def clear(): for i in trv.get_children(): trv.delete(i) con = mysql.connector.connect(host='localhost', Posswd='faiz@123#", user='root', Ootabase='data',auth_plugin='mysql_native_password’) cur = con.cursor() Curexecute("DROP TABLE records") con.commit() con.close() ™essagebox.showinfo('Info','Your history has been cleared!) gutton(window, width=20, padx=4, pady=2, text="CLEAR yisTORY", ba="#d5384d', fg="white”, font=('Mesquite St a’, 9) porder=0, relief='ridge’, 4 porderwidth=1 scommand=clear).place(x=400, y=300) putton(window, width=20, padx=4, pady=2, text="DELETE RECORD", bg="#197 1b4', fg="white", font=('Mesquite Std’, 9), border=0, relief= ridge’, porderwidth=1,command=remove_one).place(x=150, y=300) con.commit() con.close() window.mainloop() Button(writeup,width=20,pady=1,text="S P A M",font=("Khmer Ul11,bold'), bg="orange red” fg="white" border=0,relief='flat’ borderwidth=2,command=spambt n).place(x=30,y=550) Button(win,width=27,pady=7,text="5 C H ED U LE" font=("MS Micho",10'bold'),bg="#57a1f8",fg="white” border=0, relief='groove’ borderwidth=2,command=lambda:threading.Thread|targ et=main) start()).place(x=650,y=645) Botton(win, width=20, padx=2, pady=2, text="Clear All" bg="##ffddOb',fg="black”, border=0, telief='ridge' borderwidth=1 ,command=clear).place(x=800, y=590) Button(win, width=20, padx=2, pady=2, text="Show _ History", bg="#ffddOb' fg="black", border=0, ‘elief='ridge' borderwidth= 1 command=history).place(x=610, y=590) inmainloop() frer(5000, main_window) PI) Z = = z Zz = za BED ied see) MOET EON SPAM INTERFACE @ seam —— 17a Ae ot a AYOLSIH YV319 (e}-[}@E |< TEBE Ie) nok 0} Burwiow ain jo doy 00:S0 L168621E6 We eyuns JOJO1g JO Bsn AXA SI JEYM "WW, 0:22 L86096LEP6 wey eynuay Jis UoOWaYY POO 00-2 eS2SEB29LL dis UeMed a oO < mm ti & Zz: & a DQ =z wajau JO sajou ay puasaseald — OLOL 9581206986 4is aalayyn v 301AaP || UI STUIARUY Payjersu| —-OEBL LIBL2E0LP6 4IS aaleyay euysuy sHORTCOMINGS y__ this software requires good connection of internet. V_user’s PC specifications should match with recommended specs to have better experience while using. V_ Ifthe user hasn’t logged in with WhatsApp web before the scheduled time, then it may cause a delay in sending message. ¥_ The device needs to be connected with the internet & as well as logged in with WhatsApp in the system’s default browser. Y The user doesn’t get an option to schedule at © particular date. Before the scheduled time, the screen must need to be woken up. The user cannot send schedule message for Qroups. v | The user can’t make a message to be sent 'nstantly, The User cannot message a number other than Ndian country code. BIBLIOGRAPHY roject | have taken help from the por jollowind s ources: . www.youtube.com ‘ www.goolge.com e www.github.com e www.geeksforgeeks.org ehttps:// encycolorpedia.com https: //stackoverflow.com * Computer Science with Python by Preeti Arora * Notes provided by our Sir S.K. Mukherjee Hasty ee oe JULLLLEEELLALEEE i

You might also like