How do I use SendInput in Python?

Discussion in 'Python' started by Adam W., Feb 16, 2008.

  1. Adam W.

    Adam W. Guest

    I'm at the last stage of my project and the only thing left to do is
    trigger a mouse click. I did some searching around for example code
    and stumped upon SendInput http://msdn2.microsoft.com/en-us/library/ms646310.aspx
    .. However I was not able to find example code for python USING
    SendInput, and I have zero ability to make C work (or whatever that is
    written in). Can someone help me use SendInput in python, or point me
    to an alternative method?
     
    Adam W., Feb 16, 2008
    #1
    1. Advertising

  2. En Sat, 16 Feb 2008 17:08:59 -0200, Adam W. <>
    escribi�:

    > I'm at the last stage of my project and the only thing left to do is
    > trigger a mouse click. I did some searching around for example code
    > and stumped upon SendInput
    > http://msdn2.microsoft.com/en-us/library/ms646310.aspx
    > . However I was not able to find example code for python USING
    > SendInput, and I have zero ability to make C work (or whatever that is
    > written in). Can someone help me use SendInput in python, or point me
    > to an alternative method?


    Try sendkeys: http://www.rutherfurd.net/python/sendkeys/index.html
    PyWinAuto uses the above library and lets you automate an application in a
    very simple way:
    http://www.openqa.org/pywinauto

    --
    Gabriel Genellina
     
    Gabriel Genellina, Feb 16, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Barb

    SendInput too slow

    Barb, Oct 3, 2003, in forum: C++
    Replies:
    1
    Views:
    1,823
    Thomas Matthews
    Oct 3, 2003
  2. Gregoire Banderet
    Replies:
    0
    Views:
    375
    Gregoire Banderet
    Jan 15, 2004
  3. Robert
    Replies:
    1
    Views:
    319
    Martin v. Löwis
    Apr 16, 2008
  4. Peter C. Verhage

    Ruby/DL SendInput

    Peter C. Verhage, May 8, 2005, in forum: Ruby
    Replies:
    5
    Views:
    341
    Peter C. Verhage
    May 9, 2005
  5. Replies:
    10
    Views:
    896
Loading...

Share This Page