Jump to content
Fivewin Brasil

KEYBOARD


gibaf

Recommended Posts

Tente usar a função KeySec():

KeySec()

Starts a timer to write a key code into the keyboard buffer.

Syntax

Keysec( <nKey> , ;
<nTime> , ;
[<nCounter>], ;
[<lMode>] ) --> lSuccess

Arguments <nKey> This is the numeric key code to write into the keyboard buffer. #define constants listed in the Inkey.ch file are used for <nKey>. <nTime> This is a numeric value specifying the time after which the character is written into the keyboard buffer. Positive values indicate the time in seconds, while negative values are interpreted as multiples of 1/18.2 seconds. <nCounter> This parameter specifies the number of times <nKey> should be placed into the keyboard buffer before the timer ends. The default value is 1. <lMode> This parameter defaults to .F. (false). When .T. (true) is passed, the timer is reset when a key is pressed. Return

The function returns .T. (true) when the timer is successfully activated, otherwise .F. (false).

Note: when the function is called without a parameter, the timer is deactivated.

Link to comment
Share on other sites

Tente usar a função KeySec():

KeySec()

Starts a timer to write a key code into the keyboard buffer.

Syntax

Keysec( <nKey> , ;

<nTime> , ;

[<nCounter>], ;

[<lMode>] ) --> lSuccess

Arguments <nKey> This is the numeric key code to write into the keyboard buffer. #define constants listed in the Inkey.ch file are used for <nKey>. <nTime> This is a numeric value specifying the time after which the character is written into the keyboard buffer. Positive values indicate the time in seconds, while negative values are interpreted as multiples of 1/18.2 seconds. <nCounter> This parameter specifies the number of times <nKey> should be placed into the keyboard buffer before the timer ends. The default value is 1. <lMode> This parameter defaults to .F. (false). When .T. (true) is passed, the timer is reset when a key is pressed. Return

The function returns .T. (true) when the timer is successfully activated, otherwise .F. (false).

Note: when the function is called without a parameter, the timer is deactivated.

OLA

obrigado por responder...

penso q isso nao vai resolver, pq esse eh comando/funcao do (x)Harbour... e pelo q li alguma vez, é o fivewin q faz "perder" os enters q ficaram no buffer do teclado... penso, q teria q ser um recurso do fivewin...

mas, de qquer forma, obrigado, mais uma vez, por responder !!!

Link to comment
Share on other sites

Me passaram o código abaixo, funciona legal no meu sistema. Usa no valid do get.

DEFINE DIALOG oDlgPause;
FROM -10,-10 TO 1, 1;
STYLE nOr( DS_MODALFRAME, WS_POPUP );
OF oFld:aDialogs[3]
oDlgPause:nTop := -20
oDlgPause:nLeft := -20
oDlgPause:bStart := { || Eval( { || WaitSeconds( 0.2 ) }, oDlgPause ),;
oDlgPause:End(), SysRefresh() }
ACTIVATE DIALOG oDlgPause
oDlgPause := Nil
oGetx[next]:SetFocus() //atenção para esta linha que vc seta o próximo get
Return .T.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...