Home All Groups Group Topic Archive Search About

SendKeys alternative - CopyMemory Woes

Author
25 May 2005 3:38 PM
Turtle
I've been using SendKeys to automate a small utility which doesn't expose an
automation interface, but ran into a problem, for which I found the
suggestion that I use the WinAPI SendInput call instead.  In trying to
implement this, most of the sample code I've found has been in VB6, so I'm
trying to deal with that, too.
The code requires a call to CopyMemory to pack information into the right
structures for the SendInput call, and that's where it gets really hairy.
The VB declaration for CopyMemory uses two arguments declared as ANY, which
my VB.NET compiler doesn't like.
Anybody have any ideas on how this should look?
I feel I'm in way over my head on this, so please ask me what information I
need to be posting to get the answers I need to get this thing going.
Or if I'd be better off in another newsgroup, I'd appreciate a reference on
that, too.

TIA
    - Turtle

Author
25 May 2005 3:40 PM
Bob Butler
"Turtle" <macderm***@nowhere.com> wrote in message
news:O9gU$%23TYFHA.1040@TK2MSFTNGP10.phx.gbl
> Or if I'd be better off in another newsgroup, I'd
> appreciate a reference on that, too.


--
<response type="generic" language="VB.Net">
This newsgroup is for users of Visual Basic version 6.0
and earlier and not the misleadingly named VB.Net
or VB 200x.  Solutions, and often even the questions,
for one platform will be meaningless in the other.
When VB.Net was released Microsoft created new newsgroups
devoted to the new platform so that neither group of
developers need wade through the clutter of unrelated
topics.  Look for newsgroups with the words "dotnet" or
"vsnet" in their name.  For the msnews.microsoft.com news
server try these:

microsoft.public.dotnet.general
microsoft.public.dotnet.languages.vb

</response>
Author
25 May 2005 7:27 PM
Turtle
Sorry!  Brain fart!
    Thanks for the heads-up!

Show quoteHide quote
"Bob Butler" <tiredofit@nospam.com> wrote in message
news:uc38qAUYFHA.3356@TK2MSFTNGP15.phx.gbl...
> "Turtle" <macderm***@nowhere.com> wrote in message
> news:O9gU$%23TYFHA.1040@TK2MSFTNGP10.phx.gbl
>> Or if I'd be better off in another newsgroup, I'd
>> appreciate a reference on that, too.
>
>
> --
> <response type="generic" language="VB.Net">
> This newsgroup is for users of Visual Basic version 6.0
> and earlier and not the misleadingly named VB.Net
> or VB 200x.  Solutions, and often even the questions,
> for one platform will be meaningless in the other.
> When VB.Net was released Microsoft created new newsgroups
> devoted to the new platform so that neither group of
> developers need wade through the clutter of unrelated
> topics.  Look for newsgroups with the words "dotnet" or
> "vsnet" in their name.  For the msnews.microsoft.com news
> server try these:
>
> microsoft.public.dotnet.general
> microsoft.public.dotnet.languages.vb
>
> </response>
>