keyboard Buffer

is it possible to do the same as Int 16h did in dos, and put chars into the buffer?

Thanks Craig C.
LVL 2
craig_capelAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

craig_capelAuthor Commented:
Urmmm, I actually posted that message at 12:55pm WHY!!! is it saying i posted it a 4:54am?? oh yeah i know.... Living in the GMT time zone so when all you americans get the easy answers its around 2am here.... thats not fair! :)

Craig C.
0
XANCommented:
In general you can use

..xxxKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);

to do it
0
intheCommented:
keybd_Event(ord('F'),0,0,0);
keybd_Event(ord('F'),0,KEYEVENTF_KEYUP, 0);
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

craig_capelAuthor Commented:
var
 r: byte;
 ch: char;
 n: integer;
 slw: longint;
 s: string;
begin
asm
 in al,60h;
 mov r,al;
end;
s:='Hello I Was Here 19999';
   if r=$3c then
    begin
   for n:=1 to length(s) do
      begin
      keybd_event(ord(upcase(s[n])),0,0,0);
      application.processmessages;
      end;
    end;
  for slw:=1 to 1000 do
    application.processmessages;
r:=0;

I logged off for WHAT 15 mins!!!! and in that time i come up with this and you post me what i just found???????????????????

I sometimes hate you!!!!!!! :)

Craig C.
0
craig_capelAuthor Commented:
Yeah Yeah...... I asked the question regardless of if i found the info or not!
0
intheCommented:
haha hi craig i only posted quick comment cause i wasnt sure that what you needed ,seems it was ;-)

nevermind its only 20 lines less :o))


see ya
 
0
skynergyCommented:
Is there a way to clear the Keyboard Buffer?
0
intheCommented:
yeh but it wont work on nt..

Disable:

Asm
    in  al,21h
    or al,00000010b
 out 21h,al
End;

Enable:

Asm
    in  al,21h
    mov al,0
 out 21h,al
End;
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.