Sendkeys repeat char problem

  • Thread starter Thread starter a.theil
  • Start date Start date
A

a.theil

Hello!

First, I´m greenhorn to vb.net.

I do -

proIDKernel = Shell(txtKommandozeile, vbMinimizedFocus)
AppActivate(proIDKernel)
SendKeys.SendWait(strK)
SendKeys.SendWait("{ENTER}")

strK is "netz.dat", proIDKernel an integer, txtKommandozeile is
"prog.exe"

In most cases VB.NET sends something like
nnnnneeettttttzzzzzzzz.dddddaaaaaaattttt and maybe ENTER to the
running prog.exe, in some cases it crashes.

The repeat of the keys is more critical, since separating the shell
and the appactivate in time (button1, button2) prevents it. But that´s
also not great.

Didn´t have these problems with vb 6.0. (slower machine? settings 4
key repeat? AppActivate(proID, 1) SendKeys(stri, 1) there... )

Any suggestions?

thanks a lot in advance,

Andy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top