Skip to content

Instantly share code, notes, and snippets.

@syareez
Last active June 20, 2021 14:10
Show Gist options
  • Save syareez/46f16ad9f497a09f36326a5dfb2da2cd to your computer and use it in GitHub Desktop.
Save syareez/46f16ad9f497a09f36326a5dfb2da2cd to your computer and use it in GitHub Desktop.
KEY IN MERIT UPM AUTO
'''
KEY IN MERIT UPM AUTO USING PYTHON
Maintained by @syareez
Last updated: 20th June 2021
Only works with key-in no matric page sistem e-kolej
'''
import time
import pyautogui # dont forget to install (pip install pyautogui)
# Configuration (Please change according to your setting)
a_file = open("PESERTA.txt", "r") # Text file (1 matric number per line)
n_data = range(100) # How many PESERTA/PENYOKONG?
list_of_lists = []
for line in a_file:
stripped_line = line.strip()
line_list = stripped_line
list_of_lists.append(line_list)
a_file.close()
time.sleep(5)
for i in n_data:
time.sleep(1)
pyautogui.press('tab')
time.sleep(1)
pyautogui.write(str(list_of_lists[i]))
pyautogui.press('enter')
print(list_of_lists[i])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment