문제

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.

도움이 되었습니까?

해결책

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

다른 팁

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

System.Windows.Forms.SendKeys.SendWait(Keys.Decimal)
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top