import ctypes #winapi 함수들선언 SendMessage = ctypes.windll.user32.SendMessageW FindWindow = ctypes.windll.user32.FindWindowW FindWindowEx = ctypes.windll.user32.FindWindowExA #Edit자식핸들구해서 SendMessage까지 hNote = FindWindow("Notepad", None) hNoteEdit = FindWindowEx(hNote, 0, b'Edit', None) res = SendMessage(hNoteEdit, 0xC, 0, "테스트중이에요 뿌잉..