473,322 Members | 1,345 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

last mouse movment or keyboard hit

Hi,

I would like to get the time of the most recent human activity like a cursor
movement or a key hit.
Does anyone know how I can get this back to start some action after there
has been no activity for X minutes/seconds?
Thank you!

--
chEErs roN
Mar 26 '08 #1
8 2724
En Wed, 26 Mar 2008 00:38:08 -0300, Ron Eggler <ro*@example.comescribió:
I would like to get the time of the most recent human activity like a
cursor
movement or a key hit.
Does anyone know how I can get this back to start some action after there
has been no activity for X minutes/seconds?
Which platform? On non-ancient Windows versions, you can periodically
check GetLastInputInfo
http://msdn.microsoft.com/library/de...tinputinfo.asp
--
Gabriel Genellina

Mar 26 '08 #2
Gabriel Genellina wrote:
En Wed, 26 Mar 2008 00:38:08 -0300, Ron Eggler <ro*@example.comescribió:
>I would like to get the time of the most recent human activity like a
cursor
movement or a key hit.
Does anyone know how I can get this back to start some action after there
has been no activity for X minutes/seconds?

Which platform? On non-ancient Windows versions, you can periodically
check GetLastInputInfo
http://msdn.microsoft.com/library/de...tinputinfo.asp
>
No, it would be for Linux and preferrably it would work on MacOS & Windows
as well....is there anything?
Thanks!
--
chEErs roN
Mar 26 '08 #3
You can use wxPython. Take a look on the DemoFiles that you can
download also from the site. I remember that there has been a demo of
capturing mouse coordinates and also one example about capturing Which
key has been pressed at which time.
Just start the time, count the interactions of key strokes and mouse
gestures. Apply some statistics and voila. there it is.

On Mar 26, 3:28*pm, Ron Eggler <r...@example.comwrote:
Gabriel Genellina wrote:
En Wed, 26 Mar 2008 00:38:08 -0300, Ron Eggler <r...@example.comescribió:
I would like to get the time of the most recent human activity like a
cursor
movement or a key hit.
Does anyone know how I can get this back to start some action after there
has been no activity for X minutes/seconds?
Which platform? On non-ancient Windows versions, you can periodically
check GetLastInputInfo

http://msdn.microsoft.com/library/de...ary/en-us/winu...

No, it would be for Linux and preferrably it would work on MacOS & Windows
as well....is there anything?
Thanks!
--
chEErs roN
Mar 26 '08 #4
>En Wed, 26 Mar 2008 00:38:08 -0300, Ron Eggler <r...@example.com>
>escribió:
>I would like to get the time of the most recent human activity like a
cursor
movement or a key hit.
Does anyone know how I can get this back to start some action after
there
has been no activity for X minutes/seconds?
En Wed, 26 Mar 2008 13:59:15 -0300, azrael <ju*********@gmail.com>
escribió:
You can use wxPython. Take a look on the DemoFiles that you can
download also from the site. I remember that there has been a demo of
capturing mouse coordinates and also one example about capturing Which
key has been pressed at which time.
(Please don't top post)
Does wx catch all events in all other applications?
My understanding is that the OP wants a global detection, not restricted
to a single application.

--
Gabriel Genellina

Mar 26 '08 #5
azrael wrote:
You can use wxPython. Take a look on the DemoFiles that you can
download also from the site. I remember that there has been a demo of
capturing mouse coordinates and also one example about capturing Which
key has been pressed at which time.
Just start the time, count the interactions of key strokes and mouse
gestures. Apply some statistics and voila. there it is.
But that wouldn't be system wide, would it? :o

On Mar 26, 3:28Â*pm, Ron Eggler <r...@example.comwrote:
>Gabriel Genellina wrote:
En Wed, 26 Mar 2008 00:38:08 -0300, Ron Eggler <r...@example.com>
escribió:
>I would like to get the time of the most recent human activity like a
cursor
movement or a key hit.
Does anyone know how I can get this back to start some action after
there has been no activity for X minutes/seconds?
Which platform? On non-ancient Windows versions, you can periodically
check GetLastInputInfo

http://msdn.microsoft.com/library/de...ary/en-us/winu...

No, it would be for Linux and preferrably it would work on MacOS &
Windows as well....is there anything?
Thanks!
--
chEErs roN
--
chEErs roN
Mar 27 '08 #6
Gabriel Genellina wrote:
>>En Wed, 26 Mar 2008 00:38:08 -0300, Ron Eggler <r...@example.com>
escribió:

I would like to get the time of the most recent human activity like a
cursor
movement or a key hit.
Does anyone know how I can get this back to start some action after
there
has been no activity for X minutes/seconds?

En Wed, 26 Mar 2008 13:59:15 -0300, azrael <ju*********@gmail.com>
escribió:
>You can use wxPython. Take a look on the DemoFiles that you can
download also from the site. I remember that there has been a demo of
capturing mouse coordinates and also one example about capturing Which
key has been pressed at which time.

(Please don't top post)
Does wx catch all events in all other applications?
My understanding is that the OP wants a global detection, not restricted
to a single application.
Exactly, I would like to have it global/system widely detected

--
chEErs roN
Mar 27 '08 #7
Ron Eggler schrieb:
Hi,

I would like to get the time of the most recent human activity like a cursor
movement or a key hit.
Does anyone know how I can get this back to start some action after there
has been no activity for X minutes/seconds?
Try hooking yourself into the OS screen-saver-code.

Diez
Mar 27 '08 #8
Diez B. Roggisch wrote:
Ron Eggler schrieb:
>Hi,

I would like to get the time of the most recent human activity like a
cursor movement or a key hit.
Does anyone know how I can get this back to start some action after there
has been no activity for X minutes/seconds?

Try hooking yourself into the OS screen-saver-code.
I have looked at the KDE code but couldn't quite figure out how it's
working... :o Any help would be appreciated!
--
chEErs roN
Mar 29 '08 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Nolan Martin | last post by:
Is it just me or are there no good librarys out there to access the keyboard or mouse? I have been looking around for a while now and can only find ones that are bundled with a bunch of other...
0
by: George Hartas | last post by:
I am using Visual C# .NET 2003 to make a ComboBox accept both mouse and keyboard selection. For mouse selection code, I double-clicked ComboBox to get the default "comboBox1_SelectedIndexChanged"...
9
by: DotNetShadow | last post by:
Hi Guys, I have been having this problem recently where I have a form with a textbox and button, if in the button event I have the following: Private Sub Button1_Click(ByVal sender As...
2
by: beaker | last post by:
Hello, I'm writing a program (which will be running in the background 99% of the time) and I want to be able to work out how long it has been since the user last used the mouse and/or keyboard. ...
1
by: eBob.com | last post by:
Is there a .Net api or System api to determine when the user last used the mouse or keyboard? I mean system wide, not just the last keyboard or mouse interaction with my app. I'm aware of...
16
by: dfaber | last post by:
Hi all, I have been searching for a keyboard and mouse tracker on linux. I've read solutions (watch at sourceforge) which look at /proc/interrupts to check keyboard or mouse activity. I also read...
0
by: Gamey | last post by:
I have an application that NEEDS (don't ask) to handle additional mouse and keyboard processing during DoDragDrop. Normally, DoDragDrop kindly squashes all keyboard and mouse events. Alternate,...
18
by: eliss.carmine | last post by:
Is it possible to simulate a mouse click in the window I made (it's a Form), but not give it focus? I tried using WinAPI's mouseevent and SendMessage of WM_LBUTTONDOWN/WM_LBUTTONUP as suggested...
1
by: =?Utf-8?B?aG9tYW50Y3c=?= | last post by:
-windows xp -dell dimension 9150 The computer starts normally, loads up the blue login screen. I can move the cursor around the screen and type on keyboard. Then after roughly 3 seconds...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.