Página 1 de 1

BlockInput UAC

Publicado: Lun Nov 16, 2015 6:35 pm
por emeasoft
Hello Xailer,

The function BlockInput does not work with an executable without being executed as admin.

Is there any way to block the keyboard/mouse without the need to run the program with admin rights?

TIA,
Juliano

Re: BlockInput UAC

Publicado: Vie Nov 20, 2015 1:56 pm
por emeasoft
Hello Xailer,

Em algumas rotinas temos que travar o teclado (menos CTRL+ALT+DEL) enquanto imprime um documento fiscal.
Para isto usamos o BlockImput.
A partir do Windows 8 o BlockImput somente funciona no modo como Administrador.
Estamos precisando que funcione sem ser no modo Administrador.
Seria possível ?
Grato
Mário Angelini

Código: Seleccionar todo


TravaTec(.T.) -> Keyboard Lock
Sleep(10000)
TravaTec(.F.)-> Keyboard UnLock

#include "winable.h" //TRAVATEC
#include "hbapi.h"   //TRAVATEC

HB_FUNC( TRAVATEC )
{
  BlockInput( hb_parl(1) );
}