import pyautogui
import time
f = open('text.txt', 'r')
i = 0
for line in f:
i
i+=1
g = i
h = g
print(i)
with open("text.txt", "r") as f:
words = f.read().split('\n')
i = i - 1
print(words)
while True:
g = h
while g > 0:
i = 0
wait = input("Lets go? ")
pyautogui.press('esc')
pyautogui.click(words[i])
i = i + 1
g = g - 1
print("hello world")