Page 3 of 3

Re: MS SendInput

Posted: Sun Jul 16, 2017 11:13 am
by DGDanforth
My error!
I forgot to do a TranslateKey so that "R" gets mapped into >
It all seems to be working nicely now!
I do a Sleep(130) after a down and Sleep(80) after an up.
Works better than all my previous approaches.
Thank you!
-Doug

Re: MS SendInput

Posted: Mon Jul 17, 2017 5:28 am
by DGDanforth
One final comment.
The erratic behavior I was experiencing with

Code: Select all

WinApi.keybd_event
was not due to that procedure but rather do to the use of Services.Action which is guaranteed to start "NotBefore" but depending upon other actions can happen far after the designated time.

When I switched to using SendInput I also switched to using

Code: Select all

WinApi.Sleep
which (seemingly) does not suffer from those fluctuations in time.

-Doug