Announcement

Collapse
No announcement yet.

SendKeys with Vista and VB6 may fail

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • SendKeys with Vista and VB6 may fail

    Programs using VB6 and Vista may not work with sendkeys.
    This could apply to programs using PB and VB.
    http://blogs.msdn.com/michkap/archiv...10/625285.aspx http://blogs.msdn.com/davbosch/archi...26/539470.aspx

    UIPI may not allow: http://blogs.msdn.com/vishalsi/archi...-on-vista.aspx

    Does sending keys to your own application cause a problem with Vista?




    [This message has been edited by Mike Doty (edited July 23, 2007).]
    The world is full of apathy, but who cares?

  • #2
    >Does sending keys to your own application cause a problem with Vista?

    You might want to ask in a VB group, as "SendKeys" is neither a WINAPI call nor a PowerBASIC intrinsic.

    But consider there are at least two ways to "Send keys" [space between words deliberate] or equal...
    - Keybd_event
    - Send/Post message


    Michael Mattias
    Tal Systems (retired)
    Port Washington WI USA
    [email protected]
    http://www.talsystems.com

    Comment


    • #3
      The problems may arise, if the target application is been started "as-Admin",
      and the remote-control (Sending) Application has lower rights.

      Vista prevents "user-rights" messages to be sent to "amin-rights" applications
      as such behavior would render the uac useless.




      ------------------
      --Theo Gottwald
      Theos Site * IT-Berater.org

      Comment


      • #4
        That's a good explanation. It makes a lot of sense.
        Michael Mattias
        Tal Systems (retired)
        Port Washington WI USA
        [email protected]
        http://www.talsystems.com

        Comment


        • #5
          originally posted by michael mattias:
          ...as "sendkeys" is neither a winapi call nor a powerbasic intrinsic.
          true, but william burns' "sendkeys.inc" ( http://www.powerbasic.com/support/pb...ad.php?t=24488 ) contains a sendkey command which performs essentially the same.
          so, mikes question/remark is indeed relevant here.
          it is to me atleast ...

          kind regards
          ------------------
          eddy
          www.devotechs.com -- hime huge integer math and encryption library--

          [this message has been edited by eddy van esch (edited july 28, 2007).]
          Eddy

          Comment


          • #6
            Darned. I should have guessed there was something on the PB site as soon as I started reading the Microsoft blogs to which we were directed.

            I'll remember that next time.

            Michael Mattias
            Tal Systems (retired)
            Port Washington WI USA
            [email protected]
            http://www.talsystems.com

            Comment

            Working...
            X