Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'PyKeyboard' object has no attribute 'enter_key' #123

Open
yzw1993 opened this issue Feb 17, 2021 · 0 comments
Open

'PyKeyboard' object has no attribute 'enter_key' #123

yzw1993 opened this issue Feb 17, 2021 · 0 comments

Comments

@yzw1993
Copy link

yzw1993 commented Feb 17, 2021

#!/usr/bin/python

-- coding: UTF-8 --

from pykeyboard.mac import PyKeyboard
from pymouse import PyMouse
import time

m = PyMouse()
k =PyKeyboard()
print(m.position())
time.sleep(1)
m.click(766,1375)
time.sleep(0.1)
m.click(1138,39)
time.sleep(0.1)
k.type_string("www.google.com")
k.tap_key(k.enter_key)

mac.py
Traceback (most recent call last):
File "/Users/yzw/PycharmProjects/pachong/mouse.py", line 16, in
k.tap_key(k.enter_key)
AttributeError: 'PyKeyboard' object has no attribute 'enter_key'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant