Inspiration

Our Inspiration was auto-joining zoom meetings so that we are not late to classes if an emergency strikes. However, this project then turned into opening google chrome and just typing something and also closing the browser.

What it does

It opens google chrome and types something. This is accomplished by using python wherein the time, web browser and the pyautogui module.

How we built it

We built it by first making a data set called data.py and putting our list for the webbrowser, start time, and end time. So something like lst = [ ["link", "time1", "time2"]] Then we put the boolean variable that was isStarted = False. This indicates that our browser is not open. Then we run an infinite loop that checked the start time in the list and saw if datetime.now()hour matched the hour, datetime.now() minute matched the minute and datetime.now() matched the second. This was done using a for loop and a split(":") that made a distinction in our 24-hour format time between the hour, minute, and second. Then we made an in-statement that when the time matches, python opens the webbrowser. This is done using webbrowser.open(i[0]) where i is, again the counting variable of the list lst. Next, after that we used time.sleep(15) and put in our second condition which was to type a phrase "You are hacked!" This was done using pyautogui.typewrite("You are hacked", interval = 0.25) which sets the interval of 0.25 seconds between each key press. We pput another time.sleep(5), wherein we put pyautogui.click(x-coordinates, y-coordinates) which made the mouse cursor move to that specific coordinate and click on the cross-bar, which closes the browser window. Once this was done, isStarted = False and the infinite loop breaks.

Challenges we ran into

We started off using pynput but we eventually used pyautogui for its simplicity and easy-to-use syntax. The mouse coordinates change according to the window placement.

Accomplishments that we're proud of

Building a whole program starting from scratch, without any background in regards to coding is what we as a team are proud of.

What we learned

We learned about how to create fun programs in such a short amount of time.

What's next for autoZ

Meetings made easy for students or if developed further it is very likely to improve the lives of fellow students.

Built With

Share this project:

Updates