rshk / python-libxdo

Python bindings for libxdo
BSD 3-Clause "New" or "Revised" License
77 stars 19 forks source link

argument 3: <class 'TypeError'>: wrong type #22

Open Atherz97 opened 5 years ago

Atherz97 commented 5 years ago

I don't expect attention for this, but this simple code worked on my Ubuntu box, but on Arch I get:

xdo.send_keysequence_window(0,"BackSpace")
argument 3: <class 'TypeError'>: wrong type

I've tried using the additional delay parameter, adding the xdo object as the first argument, and explicitly stating "BackSpace" as a string. This error happens for other key events, like "alt+F4" and "ctrl+w"

3rock618 commented 5 years ago

xdo.send_keysequence_window(0,b"BackSpace")

the b for byte string literal might help, it will get rid of the type error. Though I haven't actually gotten my text to send yet, so not sure if it's the right fix.