Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Sendmessage() Or SendKey()

0 views
Skip to first unread message

Malgaras

unread,
Jul 29, 2000, 3:00:00 AM7/29/00
to
Hello,
Is there a command like in Visual Basic "SendKey" command to send keys
directly to the window. Sendmessage doesn't work the way I want it because
it only sends 1 letter so you need an arrayed loop to get everything across.
What Im looking for is something like this
Sendmessage('I am ' &x & 'years old')
Something like that so I can use variables. I;'m sure theres a command like
that somewhere.
Thanks
-Asyriel

Johannes Berg

unread,
Jul 29, 2000, 3:00:00 AM7/29/00
to
> Something like that so I can use variables. I;'m sure theres a command like
> that somewhere.

There's a unit named sndkey32.pas on your Delphi CD, in the Info\Extras\
folder IIRC.

johannes
--
Please reply in this newsgroup only
- SIP solutions -
http://www.sipsolutions.de/

Rafael

unread,
Aug 4, 2000, 3:00:00 AM8/4/00
to
Why not use:

myVar = 'My name is ' + x + ' and i am happy';

end then loop through the variable?

Rafael

Malgaras <malg...@iol.ie> escreveu nas notícias de
mensagem:8lum41$15...@bornews.borland.com...


> Hello,
> Is there a command like in Visual Basic "SendKey" command to send keys
> directly to the window. Sendmessage doesn't work the way I want it because
> it only sends 1 letter so you need an arrayed loop to get everything
across.
> What Im looking for is something like this
> Sendmessage('I am ' &x & 'years old')

> Something like that so I can use variables. I;'m sure theres a command
like
> that somewhere.

> Thanks
> -Asyriel
>
>

0 new messages