How can I send a period with the Sendkeys.SendWait() function?

前端 未结 2 1524
花落未央
花落未央 2021-01-27 16:00

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

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


        
相关标签:
2条回答
  • 2021-01-27 16:41

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

    0 讨论(0)
  • 2021-01-27 16:59

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

    System.Windows.Forms.SendKeys.SendWait(Keys.Decimal)
    
    0 讨论(0)
提交回复
热议问题