Replies: 1 comment
-
Some programs also just won't respond to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys, I have some problem using window.click (ControlClick like) and I would like some help, is it a problem with my code or a .click issue ?
The strange part is that my .send('c') work well, but not my click(x,y)
Here is my code :
ahk = AHK()
acc_list.sort(key=lambda x: x.initiative, reverse=False)
cursor_pos = pyautogui.position()
for i in range(len(acc_list)):
byte_name = bytes(acc_list[i].char_name, 'utf-8')
name = acc_list[i].char_name
print(byte_name)
win = ahk.find_window(title=byte_name)
print(win)
win.send('c')
win.click(x=cursor_pos[0], y=cursor_pos[1])
sleep(1)
Thanks a lot :)
Beta Was this translation helpful? Give feedback.
All reactions