[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 603
  • Last Modified:

I need the file: p_getlastinput.dll

Not really a question, but I need either the "p_GetLastInput.dll" or some other DLL that can do the same.  And I need it as soon as possilbe.  The attached code (and today's date) should make it obvious why.


Dim tm, sys, objShell

Set tm = CreateObject("p_GetLastInput.clsIdle")
Set sys = CreateObject("JSSys3.ops")
Set objShell = CreateObject("WScript.Shell")
Do 
    WScript.sleep 1000
    If tm.idletime > 2000 Then
        If sys.GetActiveWindowTitle() <> "" Then
            objShell.Run "rundll32.exe user32.dll,LockWorkStation", 1, False
        End If
    End If

Loop

Open in new window

0
sweekes283
Asked:
sweekes283
  • 2
1 Solution
 
exx1976Commented:
After much googling, I was unable to find that dll.  However, this might help you out...


http://www.scriptinganswers.com/forum2/forum_posts.asp?TID=1127
0
 
sweekes283Author Commented:
Yeah, I've seen that one.  It's only good for Remote Connections though.  The DLL I'm after just hooks into the Keyboard and Mouse and reports the last time that either was used.  There aren't any Windows objects that will work for this, so I'm really hoping to come across the same or a similar DLL that someone has assembled.
0
 
Daz_1234Commented:
Hi sweekes283,

If you want run something after the computer has been idle for a set period of time, you can use the task scheduler using the on idle option.  The downside of this is that the smallest unit is one minute.  It can be automated though using schtasks.exe

Regards
Daz.
0
 
sweekes283Author Commented:
Oh how I love the wayback machine.  Located the dll on a defunct website (attached).  Back to harassing coworkers now.
p-GetLastInput.dll
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now