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

前端 未结 2 1523
花落未央
花落未央 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:59

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

    System.Windows.Forms.SendKeys.SendWait(Keys.Decimal)
    

提交回复
热议问题