CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 1999
    Location
    Québec (Canada)
    Posts
    210

    I would like to use SendKeys

    I would like to start Ctrl + Shift + G in code VB.

    I try with SendKeys {^+G} but the characters "{" is not accepted.

    I try "^" & "+G" and "^" & "+" & "G" and ... but I am not able to start Ctrl+Shift+G

    Do you know how can I do that ?

    Thanks
    Redg


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: I would like to use SendKeys

    I just placed the following code in my vb module

    AppActivate "Dokument3 - Microsoft Word", true
    SendKeys "^+G"



    it sent Ctrl + Shift + G to MS Word, which toggled the "case" of the selected text in my word document.
    Everything worked as exected.
    What is your problem?


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

Featured