0

I want to send "\" (backslash) key to a webpage in a browser.

I am able to send other keys. But it is not working for "\". I am using SendKeys.SendWait("{\\}") to send the key.

user2316771
  • 111
  • 1
  • 1
  • 11
  • What are you attempting to achieve? Since `\\\` doesn't do anything in the browser? Are you trying to send it to the Page? – Jamie Rees Aug 03 '15 at 11:22
  • 1
    @TFrost "browser" is not code. Please don't use `inline code` to highlight random terms. – CodeCaster Aug 03 '15 at 11:59
  • Of course, in your case you'd use `Keys.OemBackslash`. But do note that `SendKeys` really isn't designed for sending *characters* - it's for sending *keys*. The two are very different and it's going to bite you hard on different keyboard layouts than US standard. – Luaan Aug 03 '15 at 12:00
  • @CodeCaste sorry my mistake... – TFrost Aug 03 '15 at 12:07
  • @Jamie Rees: yup..I am trying to send it to the page..i have edited the question – user2316771 Aug 03 '15 at 12:52
  • @Luaan: System.Windows.Forms.SendKeys.SendWait() is accepting only string input and not an enum type. Am i doing something wrong ? and ya, I am using US standard layout always – user2316771 Aug 03 '15 at 13:11

0 Answers0