Jump to content

Pressionar tecla CONTROL


Go to solution Solved by Muryllo,

Recommended Posts

Posted

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 ?

Posted

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
Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.