Jump to content
Sign in to follow this  
kylef7

carregar numa tecla VB.. Urgente

Recommended Posts

kylef7

Boas..

Queria fazer um programa em que ao carregar no botão "Iniciar" do programa, ele carregasse nas teclas "F1" e "F2" do teclado de 60 em 60 segundos =/. Alguém me pode ajudar ?

Cumps...

Share this post


Link to post
Share on other sites
Dumpster

SendKeys "{F1}" 'Ou F2 claro

;)

Ou seja, para o que queres crias um timer com um intervalo de 60000, e supondo que o timer tem como name Timer1

Private Sub Timer1_Timer()
SendKeys "{F1}"
SendKeys "{F2}"
End Sub

Share this post


Link to post
Share on other sites
kylef7

sim já tinha experimentado assim. porém não dá.

Não carrega nas teclas =/

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×
×
  • 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.