Hi,
This script is a B4J compiled version of this example : http://ochafik.com/blog/?p=98 by Olivier Chafik.
The library aims at retrieving the user's idle time using the Windows' GetLastInput Method. It could be useful in case of a chat program, or to stop certain actions when the user is not using your application.
The library as been implemented using JNA, but works only with JNA version 3.4.0 (I don't know why it wouldn't work with JNA 4.0.0).
How to use it:
- download JNA 3.4.0 from here : http://mvnrepository.com/artifact/net.java.dev.jna/jna and copy the file to your Libraries folder.
- Download and copy the jWin32IdleTime.jar and jWin32IdleTime.xml files to your libraries folder.
Things you should know:
- This library works only on windows, though there is a Linux and MaxOS version at the bottom of this page : http://ochafik.com/blog/?p=98. If someone is interested in converting them, that would be great!
Special thanks to Erel, for helping me to sort out the compiling problem!
This script is a B4J compiled version of this example : http://ochafik.com/blog/?p=98 by Olivier Chafik.
The library aims at retrieving the user's idle time using the Windows' GetLastInput Method. It could be useful in case of a chat program, or to stop certain actions when the user is not using your application.
The library as been implemented using JNA, but works only with JNA version 3.4.0 (I don't know why it wouldn't work with JNA 4.0.0).
How to use it:
- download JNA 3.4.0 from here : http://mvnrepository.com/artifact/net.java.dev.jna/jna and copy the file to your Libraries folder.
- Download and copy the jWin32IdleTime.jar and jWin32IdleTime.xml files to your libraries folder.
Things you should know:
- This library works only on windows, though there is a Linux and MaxOS version at the bottom of this page : http://ochafik.com/blog/?p=98. If someone is interested in converting them, that would be great!
Special thanks to Erel, for helping me to sort out the compiling problem!
Attachments
Last edited: