Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > How can I get the time of the last input event (key and mouseactivity) in VISTA?

Reply
Thread Tools Display Modes

How can I get the time of the last input event (key and mouseactivity) in VISTA?

 
 
Tomas
Guest
Posts: n/a

 
      06-26-2008
I have done a small program in VB.NET that uses the GetLastInputInfo
function to retrieve the time of the last input event. It checks every
second and it works well in Windows XP. However, when I install the
program in VISTA it crashes.

Does anyone know how I can get the time of the last input event (key
and mouse activity) in VISTA?

Any direction and help is most appreciated!

Best regards,

Tomas
 
Reply With Quote
 
 
 
 
Mr. Arnold
Guest
Posts: n/a

 
      06-26-2008

"Tomas" <> wrote in message
news:8d0c8fa4-8323-4c3a-b3d9-...
>I have done a small program in VB.NET that uses the GetLastInputInfo
> function to retrieve the time of the last input event. It checks every
> second and it works well in Windows XP. However, when I install the
> program in VISTA it crashes.
>
> Does anyone know how I can get the time of the last input event (key
> and mouse activity) in VISTA?
>
> Any direction and help is most appreciated!


MS.public.dotnet.framework.vb

You do know that you may have to escalate the programs privileges to make
it run by using the Vista UAC manifest in code. Also if the solution was
built on XP and is using DLL(s) from that platform and then to deployed to
Vista,then that doesn't mean it's going to work on Vista and may require a
rewrite to run on Vista.

 
Reply With Quote
 
Tomas
Guest
Posts: n/a

 
      06-26-2008
On Jun 26, 1:30*pm, "Mr. Arnold" <MR. Arn...@Arnold.com> wrote:
> "Tomas" <Tomas.Nordlan...@gmail.com> wrote in message
>
> news:8d0c8fa4-8323-4c3a-b3d9-...
>
> >I have done a small program in VB.NET that uses the GetLastInputInfo
> > function to retrieve the time of the last input event. It checks every
> > second and it works well in Windows XP. However, when I install the
> > program in VISTA it crashes.

>
> > Does anyone know how I can get the time of the last input event (key
> > and mouse activity) in VISTA?

>
> > Any direction and help is most appreciated!

>
> MS.public.dotnet.framework.vb
>
> You do know that you may have to escalate the programs privileges *to make
> it run by using the Vista UAC manifest in code. Also if the solution was
> built on XP and is using DLL(s) from that platform and then to deployed to
> Vista,then that doesn't mean it's going to work on Vista and may require a
> rewrite to run on Vista.


Thanks for your quick response; I was hopping for a quick fix to get
it to work, but that will not be the case. I appreciate you taken the
time to help me on my way.

Tomas
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Meaning of "sleep time" in Vista Event Viewer? EhrFred Windows Vista General Discussion 2 03-03-2008 11:23 PM
Chinese Traditional Input using Phonetic Input Jess Windows Vista General Discussion 1 01-19-2008 05:25 PM
Wrong time in Event Viewer when resuming from Sleep flyfishmaster Windows Vista General Discussion 1 09-13-2007 03:02 AM
XP to Vista (new machine) event 6005 taking long time Robert Paresi Windows Vista Networking 0 05-17-2007 12:21 PM
Unable to fetch the Event Log - Event Description Vineet Das Windows Vista Security 4 08-24-2006 06:52 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59