1 Replies - 1119 Views - Last Post: 06 April 2011 - 06:23 AM Rate Topic: -----

#1 Lyper  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 05-April 11

Alternative to Sendkeys

Posted 05 April 2011 - 08:53 PM

I can't seem to find an alternative to sendkeys, which is only for python up to 2.6. Is there some lib I can use other than this that will send key presses commands to the computer?
Is This A Good Question/Topic? 0
  • +

Replies To: Alternative to Sendkeys

#2 Motoma  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 452
  • View blog
  • Posts: 796
  • Joined: 08-June 10

Re: Alternative to Sendkeys

Posted 06 April 2011 - 06:23 AM

Hi there,

Do you have a C compiler on your system? If so, you can try downloading the source package and running python setup.py install.

If that doesn't work, you might be able to get away with installing the Python 2.6 version of the package and copying the files from the older version's site-packages directory into the new version's.

Short of that, you will need to read through the C source file in the package and try to emulate that with ctypes.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1