-1
I have a problem with an automation I use. I use a TXT with some information but in IF I don’t 'recognize' the variable I added in TXT.
import sys
import webbrowser
import random
import time
import pyautogui
import itertools
import pyperclip
uso3 = 's'
uso1 = "im"
with open("uso.txt") as file10:
for (line10) in (file10):
time.sleep(1)
linha10 = line10
webbrowser.open(site)
time.sleep(10)
# Adicionar Estoque
print(type(linha10))
print(type(uso1))
uso2 = linha10 + uso1
print(uso2)
if uso2 == "sim":
print('teste.')
else:
print("merda")
pyautogui.moveTo(602, 569, duration=0.30)
pyautogui.click(602, 569, button='left', duration=0.25)
time.sleep(1)
pyautogui.moveTo(642, 609, duration=0.30)
pyautogui.click(642, 609, button='left', duration=0.25)
Where do you declare
uso2
?– Evilmaax