Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. SendKeys and ^

SendKeys and ^

Scheduled Pinned Locked Moved C#
tutorialquestionlearning
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dominik Reichl
    wrote on last edited by
    #1

    Hello! Does anyone know how to send a ^ using the SendKeys class? All other characters I tested work fine. ^ of course needs to be escaped using {^} (because ^ would press Ctrl), however when sending {^} it actually types a & ... Best regards Dominik


    Too many passwords to remember? Try KeePass Password Safe!

    W 1 Reply Last reply
    0
    • D Dominik Reichl

      Hello! Does anyone know how to send a ^ using the SendKeys class? All other characters I tested work fine. ^ of course needs to be escaped using {^} (because ^ would press Ctrl), however when sending {^} it actually types a & ... Best regards Dominik


      Too many passwords to remember? Try KeePass Password Safe!

      W Offline
      W Offline
      Wendelius
      wrote on last edited by
      #2

      Hi, noticed this on documentation:

      If your application is intended for international use with a variety of keyboards, the use of Send could yield unpredictable results and should be avoided

      while SendWait-method does not have this note. Mika

      D 1 Reply Last reply
      0
      • W Wendelius

        Hi, noticed this on documentation:

        If your application is intended for international use with a variety of keyboards, the use of Send could yield unpredictable results and should be avoided

        while SendWait-method does not have this note. Mika

        D Offline
        D Offline
        Dominik Reichl
        wrote on last edited by
        #3

        Sorry, I should have pointed out that I'm already using the SendWait static method of the SendKeys class. Any other idea? Best regards Dominik


        Too many passwords to remember? Try KeePass Password Safe!

        W 1 Reply Last reply
        0
        • D Dominik Reichl

          Sorry, I should have pointed out that I'm already using the SendWait static method of the SendKeys class. Any other idea? Best regards Dominik


          Too many passwords to remember? Try KeePass Password Safe!

          W Offline
          W Offline
          Wendelius
          wrote on last edited by
          #4

          If you change the keyboard layout to English, caret works just fine, but for example with Finnish layout, ampersand is sent instead caret (just like in your case). Since every other character works as expected, I would consider this as a possible bug. Mika

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups