Results 1 to 3 of 3

Thread: sending keys?

  1. #1

    Thread Starter
    Fanatic Member siyan's Avatar
    Join Date
    Jul 2001
    Location
    GOOOAAAAALLLLL!!!!!
    Posts
    869

    sending keys?

    Does anybody know how to send keys to the system? like send the WinKey + D combination for minimize to desktop, Ctrl+Z for undo, etc.

    I've tried fiddling with SetKeyboardState API but no go...if there is a .NET framework way then hurrah!

    TIA

    -C
    Unite, proletariat!

  2. #2
    Hyperactive Member anita2002's Avatar
    Join Date
    Dec 2001
    Location
    In u'r Heart
    Posts
    482
    Hi,
    I'm very new to .NET Infact its my first day.
    But please tell me can we use "sendkeys" here just same as we use in VB6.0
    For eg. for sendijng CRTL and Z
    SendKeys "^Z" '^ is the character to send the CTRL key
    Anyone pls explain...
    Can't imagine life without VB
    (Various Boyfriends)

  3. #3
    Frenzied Member trisuglow's Avatar
    Join Date
    Jan 2002
    Location
    Horsham, Sussex, UK
    Posts
    1,536
    According to my research SendKeys.Send("^Z") should do the trick. Does that work for you?
    This world is not my home. I'm just passing through.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width