0
I have the following code
import pyautogui
pyautogui.moveTo(612, 269)
pyautogui.doubleClick()
copiar = pyautogui.hotkey('ctrl', 'c')
colar = pyautogui.hotkey('ctrl', 'v')
resultado = colar
print(resultado)
however my print is returning "None". I know I could show the result of CTRL+V direct, but I want to make a repeat structure with the conditional
carregando = 'carregada '
pyautogui.moveTo(612, 269)
pyautogui.doubleClick()
copiar = pyautogui.hotkey('ctrl', 'c')
colar = pyautogui.hotkey('ctrl', 'v')
resultado = colar
if copiar == carregando:
copiar = pyautogui.hotkey('ctrl', 'c')
What exactly are you trying to do? The pyautogui.hotkey line does not return true or false, so this comparison you are trying to make will never work.
– Kleber Silva
Thanks for the answer. So I need to know if the content inside my Ctrl+v equals "loaded". If it is the same, you should continue copying and pasting that specific point. If it is not the same, it will pass to another command.
– JonesSantos