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
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