Hello,
i built a small system-tray application that listens to a hotkey builds
a string and inserts the string to the active application using
SendKeys.Send()
The Problem is - this works only once. The hotkey is still o.k. (i also
copy the string to the clipboard, here I always get the correct string
that contains a timestamp) but sendkeys sends strange characters the
second time:
{}[}}[²
or
{}[}}[}
Depending on the active application sometimes the second time no string
at all is sent.
Can you please help me with this?
Thanks Alfred
Steve Drake - 17 Aug 2005 14:07 GMT
I havent used sendkey for years, and i have always had problems, if you want
to put some text in somewhere you may be able to use the clipboard and send
the Windows Message the triggers a Paste.
Steve
Hello,
i built a small system-tray application that listens to a hotkey builds
a string and inserts the string to the active application using
SendKeys.Send()
The Problem is - this works only once. The hotkey is still o.k. (i also
copy the string to the clipboard, here I always get the correct string
that contains a timestamp) but sendkeys sends strange characters the
second time:
{}[}}[²
or
{}[}}[}
Depending on the active application sometimes the second time no string
at all is sent.
Can you please help me with this?
Thanks Alfred
alfred.sehmueller@gmx.de - 17 Aug 2005 16:54 GMT
Thanks for your answer,
the problem is, the users don't wan't to loose there current clipboard.
That's why I thought about sendkeys
Bye Alfred
Steve Drake - 18 Aug 2005 17:07 GMT
You can save and resotre the clip board.
Steve
> Thanks for your answer,
>
> the problem is, the users don't wan't to loose there current clipboard.
> That's why I thought about sendkeys
>
> Bye Alfred
Brendan Grant - 17 Aug 2005 14:41 GMT
Try using SendWait() instead of Send() in order to make sure the first group
of keys was processed by the receiver before sending another group.
Brendan
> Hello,
>
[quoted text clipped - 17 lines]
>
> Thanks Alfred
alfred.sehmueller@gmx.de - 17 Aug 2005 16:55 GMT
Hi Brendan,
thanks for your answer, but this didn't help
Bye Alfred