i am using following code to send keys to a certain application, but on some PCs its not working. The code itself should be OK, since on most computers it works fine. Its just on some computers that it doesnt work. It sends the keys too many times or doesnt send them at all. After googeling i found that it is a comon problem with some motherboards so i would like to implement a more reliable code that does the same.
UPDATE: INPUTSIMULATOR is not an option because it doesnt work with my code since i have to set another window active. (just tested it)
How could following code be achived in a more reliable way?
....
Key = Sender.Tag
If Key = "{SPACE}" Then Key = " "
SetActiveWindow(Form1.activewin)
If IsNumeric(Key) Then
SendKeys.Send(Key)
Else
SendKeys.Send(Special & IIf(CapsLock.Checked, UCase(Key), Key))
End If
Application.DoEvents()
....
thanks