• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 190
  • Last Modified:

Detect all user inputs with VB6.

Hi, experts.

I am developing an application for a kiosk machine which has a video playing function. It works like this, when the machine is idle for some time e.g. 2 mins, the video start playing. Upon user input is detected, the video stops and screen return to the kiosk menu.

I plan to do it this way. Set a timer to launch the video displaying function. Everytime an user input is detect, the timer is reset. While if the video is playing when user input is detected, the program will close the video playing function and return to the kiosk application.

The problem for is that there are several applications running on the machine, and some are external application that I cannot modify.

So, I need a way to detect the mouse move, mouse key press and keybroad key press for all applications (including external applications). Please advice, it would be okay if you suggest another model or give hints about which functions or api to use. Thanks in advance.


1 Solution
"Check for User Activity Throughout the System"
I would write a program that would run in the background as the timer clicks away. Then when times up boom, the progam pops up displaying the video and the video is in the program. Thus the key pressed will (unless someone hits Alt-Tab, ect which can be disabled) be pressed into the form and make it realize it needs to hide again. If you don't understand this I can throw up some code.

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

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