0

How do I send a period using sendkeys? I have tried:

System.Windows.Forms.SendKeys.SendWait("{.}"); 
System.Windows.Forms.SendKeys.SendWait(".");

but neither of these work. I am trying to send the keyboard shortcut to a Google search window to enable voice search in Chrome. The shortcut is CTRL+SHIFT+PERIOD, I know how to do the ctrl+shift, just not the period. Anyone have any ideas? Any help is appreciated, thank you.

Ray
  • 325
  • 4
  • 15
  • Just to clarify, you already tried `System.Windows.Forms.SendKeys.SendWait("^%.")` and that didn't work? – ScottieMc Jun 25 '12 at 19:49

2 Answers2

1

Try this: System.Windows.Forms.SendKeys.SendWait(Keys.OEMPeriod);

Esoteric Screen Name
  • 6,082
  • 4
  • 29
  • 38
0

Have you considered the Keys enum? It has a "decimal"

System.Windows.Forms.SendKeys.SendWait(Keys.Decimal)
ems305
  • 1,030
  • 11
  • 7