Page 1 of 1

Detect Keyboard activity

PostPosted: Sun Jul 08, 2012 8:41 am
by Alex
Hi,

Is it possible to detect the keyboard activity? The mouse activity is possible with getmouse, but the keyboard?

I found a VB6 source code, maybe is it possible to make the same with Neobook and using some plugin?

Code: Select all
Option Explicit

Private Type LASTINPUTINFO
        cbSize As Long
        dwTime As Long
End Type

Private Declare Function GetLastInputInfo Lib "user32" (li As LASTINPUTINFO) As Long
Private Declare Function GetTickCount Lib "kernel32" () As Long


' Returns system tick count when last input occurred
Private Function GetInputTick() As Long
    Static LastInputTick As Long
   
    Dim myLI As LASTINPUTINFO
    myLI.cbSize = Len(myLI)
    GetLastInputInfo myLI
    GetInputTick = myLI.dwTime
End Function


Thanks


Alex

Re: Detect Keyboard activity

PostPosted: Mon Jul 09, 2012 7:48 am
by dpayer
Alex wrote:Hi,

Is it possible to detect the keyboard activity? The mouse activity is possible with getmouse, but the keyboard?
Alex


Alex, in this thread:
http://www.neosoftware.com/forum/viewto ... t=keyboard
you told everyone that the DEC plugin solved your problems. Now you say you need a new plugin. Which statement is accurate?

David P.

PostPosted: Mon Jul 09, 2012 11:08 pm
by Alex
Hi dpayer,

Yes, thanks, that's true but sometimes, it slower the computer when I write something. That's why I am trying to find an other solution.

Thanks


Alex