컴퓨터/Python

pyautogui keyDown

풍경소리^^ 2019. 5. 14. 23:28
import pyautogui
import time

def macro():
print('Macro Function Playing...')
texts="hello world"
for text in texts:
time.sleep(2)
pyautogui.press(text)
pyautogui.keyDown('alt')
time.sleep(2)
pyautogui.press('f')
time.sleep(2)
pyautogui.keyUp('alt')
time.sleep(2)
pyautogui.press('s')


if __name__ == '__main__':
macro()


'컴퓨터 > Python' 카테고리의 다른 글

python 메모장에 글쓰기  (0) 2019.05.15
python 다른프로그램 실행  (0) 2019.05.14
아이콘 만들기 icoconvert  (0) 2019.05.14
pyautogui 에러 없이 모듈 설치하는 방법  (0) 2019.05.14
github  (0) 2019.05.14