 | | From: | Wagner J.Rocha | | Subject: | Colocar caracteres no buffers do teclado. | | Date: | Thu, 23 Dec 2004 18:57:58 -0200 |
|
|
 | Tenho a necessidade em gerar algumas informações no buffer do teclado de uma janela do windows. Esta janela pode estar rodando um aplicativo DOS ou Windows. Alguém poderia me auxiliar nesta tarefa?
Grato.
Wagner.
|
|
 | | From: | Paulo Pereira [APKomp Brasil] | | Subject: | Re: Colocar caracteres no buffers do teclado. | | Date: | Fri, 24 Dec 2004 08:44:12 -0200 |
|
|
 | Inserts keystrokes into the typeahead buffer.
Syntax
KEYBOARD [CLEAR]
A character string, which may include mnemonic strings representing key labels.
CLEAR
Empties the typeahead buffer before inserting .
Description
Use KEYBOARD to simulate keystrokes by placing or "stuffing" them in the typeahead buffer.
KEYBOARD can place any number of characters in the typeahead buffer, up to the limit specified by SET TYPEAHEAD; subsequent characters are ignored. If SET TYPEAHEAD is 0, you may KEYBOARD one character.
Keystrokes simulated with KEYBOARD are treated like normal keystrokes, going into the control that currently has focus. Some controls support a keyboard( ) method that enables you to send keystrokes to that specific control.
In addition to the simple alphanumeric keys on the keyboard, you may also use mnemonic strings to simulate must function keys. For a list of mnemonic strings, see the keyboard( ) method.
|
|
 | | From: | Wagner J.Rocha | | Subject: | Re: Colocar caracteres no buffers do teclado. | | Date: | Mon, 27 Dec 2004 09:49:30 -0200 |
|
|
 | Mas este comando só irá funcionar dentro do aplicativo em dBase, preciso gerar o keyboard para qualquer aplicativo que esteja rodando em outro task do windows.
"Paulo Pereira [APKomp Brasil]" escreveu na mensagem news:XJxNSZa6EHA.1736@news-server... > Inserts keystrokes into the typeahead buffer. > > Syntax > > KEYBOARD [CLEAR] > > > > A character string, which may include mnemonic strings representing key > labels. > > CLEAR > > Empties the typeahead buffer before inserting . > > Description > > Use KEYBOARD to simulate keystrokes by placing or "stuffing" them in the > typeahead buffer. > > KEYBOARD can place any number of characters in the typeahead buffer, up to > the limit specified by SET TYPEAHEAD; subsequent characters are ignored. > If SET TYPEAHEAD is 0, you may KEYBOARD one character. > > Keystrokes simulated with KEYBOARD are treated like normal keystrokes, > going into the control that currently has focus. Some controls support a > keyboard( ) method that enables you to send keystrokes to that specific > control. > > In addition to the simple alphanumeric keys on the keyboard, you may also > use mnemonic strings to simulate must function keys. For a list of > mnemonic strings, see the keyboard( ) method. >
|
|
 | | From: | Op3racional-Suporte | | Subject: | Re: Colocar caracteres no buffers do teclado. | | Date: | Tue, 28 Dec 2004 08:08:00 -0000 |
|
|
 | Só usando um API do windows para 1º seleccionar o formulário dessa outra aplicação e outro API para lançar dados para o buffer.
--
Cumprimentos.
E q u i p a de S u p o r t e dBASE
O p 3 r a c i o n a l http://www.op3racional.de
P o n t o C e n t r a l http://www.ponto-central.op3racional.de
|
|
 | | From: | Paulo Pereira [APKomp Brasil] | | Subject: | Re: Colocar caracteres no buffers do teclado. | | Date: | Fri, 24 Dec 2004 08:41:57 -0200 |
|
|
 | Bem, dentro de uma aplicação dBASE usa-se a função KEYBOARD que também pode dar algum efeito fora da aplicação...
Paulo
|
|