Muryllo Posted July 20, 2016 at 06:33 PM Report #597742 Posted July 20, 2016 at 06:33 PM Olá, boa tarde. Eu estou em dúvida sobre como simular o pressionamento da tecla 'control' ou CTRL no vb.net. Já procurei no google e não encontrei como fazer isso. Eu tentei da seguinte forma : SendKeys.Send("{CTRL}") SendKeys.Send("{CONTROL}") SendKeys.Send("CTRL") SendKeys.Send("^") Mas nenhuma destas funciona, alguma ideia ?
FreiNando Posted July 20, 2016 at 10:09 PM Report #597745 Posted July 20, 2016 at 10:09 PM Tenta SendKeys.Send("^") "+" - Shift "^" - Control "%" - Alt (Menu) Mas em VB.net nem sei se é possível distinguir as teclas esquerdas das direitas no SendKeys, embora os códigos dessas teclas existam no enumerador Keys O caminho mais curto para conseguir fazer muitas coisas é fazer uma de cada vez. Samuel Smiles
Solution Muryllo Posted July 20, 2016 at 11:15 PM Author Solution Report #597747 Posted July 20, 2016 at 11:15 PM Bom, tentei usando : SendKeys.Send("^F") Desta forma funcionou! ^ só pode ser usado junto com outra tecla pelo visto, mas não separado. Bom saber disso. Obrigado
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now