Jump to content
Fivewin Brasil

funcao para bloquear teclado/mouse


bortot

Recommended Posts

No teclado, quereis desligar o que? Para o mouse, segue abaixo:

    IF XDESLIMOUSE = [S]
       //-> Desliga o Cursor do Mouse
       DESLIGA_RATO()
    ENDIF
	
    IF XDESLIMOUSE = [S]
       //-> Religa Cursor do Mouse
       RELIGA_RATO()
    ENDIF
	Function Desliga_Rato()
	   ShowCursor( 0 ) // Desliga Mouse Move
   SysRefresh()
   
Return Nil
	//-----------------------------------------------------------------------------
	Function Religa_Rato()
	   ShowCursor( 1 ) // Re-Liga Mouse Move //2
	   // Outra Opção
   //SetCursorPos( ( 1 ), ( 2 ) ) // Re-Liga Mouse Move
   SysRefresh()
	Return Nil
	//-----------------------------------------------------------------------------
	Function Canhotos()
	   // Inverte botao do Ratinho
   SwapMouseButton( 1 )  // Para Canhotos
	Return Nil
	//-----------------------------------------------------------------------------
	Function Destros()
	   // Volta ao Normal
   SwapMouseButton( 0 ) // Para Destros
	Return Nil
	DLL32 FUNCTION SwapMouseButton(swap AS 7) AS 7 PASCAL LIB "USER32.DLL"


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...