Source language: Translate to:

Detect Keyboard activity

Questions about using NeoBook's scripting language

Moderator: Neosoft Support

Detect Keyboard activity

Postby Alex » Sun Jul 08, 2012 8:41 am

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
Alex
 
Posts: 745
Joined: Sat Mar 04, 2006 4:53 am

Re: Detect Keyboard activity

Postby dpayer » Mon Jul 09, 2012 7:48 am

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.
User avatar
dpayer
 
Posts: 1383
Joined: Mon Apr 11, 2005 5:55 am
Location: Iowa - USA

Postby Alex » Mon Jul 09, 2012 11:08 pm

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
Alex
 
Posts: 745
Joined: Sat Mar 04, 2006 4:53 am


Return to NeoBook Action Commands

Who is online

Users browsing this forum: No registered users and 1 guest