SRL Archive - Delphi/FPC Help and Tutorials

Typing in Delphi?


Daniel

2008-03-15 01:07:29

How do you type something in Delphi? Thanks ;)

Dan Cardin

2008-03-15 09:17:11

SendMessage, that what you want?

ShowerThoughts

2008-03-15 10:07:42

pl0x, thanks! how to do this

if F8KeyisDown then
in delphi?
i want to use that… (detect if F(NUmber) is down

Daniel

2008-03-16 03:40:00

From: Dan Cardin
SendMessage, that what you want?

Thanks :) I try reading the in-built help book but i cannot understand a thing because all it does it tell you about different procedures/functions.

Also, is there any functions/procedures similar to KeyDown and KeyUp?

Freddy1990

2008-03-17 12:56:50

From: Dan Cardin
SendMessage, that what you want?

lol

ShowerThoughts

2008-03-17 14:09:22

i use sendkeys to type chars but it says string and card is somthing diff… and i want to do

sendkeys(Username.Text,True)//username is an edit and true is for wait

but it doesn't wants to do that it says unknownidentifier username.. but its an edit box

Daniel

2008-03-18 01:41:01

From: Dan Cardin
SendMessage, that what you want?

Tried it, it doesn't work. I looked up the help file and it was there but it kept giving me an unknown identifier.
From: hermpie
i use sendkeys to type chars but it says string and card is somthing diff… and i want to do

sendkeys(Username.Text,True)//username is an edit and true is for wait

but it doesn't wants to do that it says unknownidentifier username.. but its an edit box

That's because you have to add the procedure name under the type area.

Dan Cardin

2008-03-18 07:04:43

no, i looked at what he had and it looked ok to me, the only problem was that sendKeys uses a PanSiChar or something like that -.-

Daniel

2008-03-20 01:47:37

From: Dan Cardin
no, i looked at what he had and it looked ok to me, the only problem was that sendKeys uses a PanSiChar or something like that -.-

Do you still know how to make Delphi type?

Freddy1990

2008-03-21 16:17:36

From: IP-Drowner
Tried it, it doesn't work. I looked up the help file and it was there but it kept giving me an unknown identifier.


SenMessage sends messages to other windows/processes, probably the most inefficient way to try to type something :)

ShowerThoughts

2008-03-21 16:40:49

From: Freddy1990
SenMessage sends messages to other windows/processes, probably the most inefficient way to try to type something :)


Freddy1990
wat is the good way then?!

maybe you can tut me a little on msn?

already thanks,
Hermpie

1337.

2008-03-21 19:49:20

From: IP-Drowner
How do you type something in Delphi? Thanks ;)


I suggest you learn how to use google, it comes in handy quite often:

http://delphi.about.com/od/objectpascalide/l/blvkc.htm
http://www.patilan.com/Delphi/tips1.htm (scroll down)

Freddy1990

2008-03-22 06:18:04

Go to my old site archive here: http://freddy1990.com/oldsite/, then click "Delphi Sources", then click "SendKeys", I have a unit uploaded, written by "Zarko Gajic", which does the job perfectly :)

ZephyrsFury

2008-03-22 06:27:27

I use this:
http://www.delphi3000.com/articles/article_288.asp?SK=

Just copy the procedures into your code.