|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
tracking mouse/keyboard activity
Hey, interesting problem: I want to display my office phone number on my web site when I am sitting at my computer, and I want to display my home number when I am sitting at my computer at home. When I am not sitting at either, I want to display my voicemail number. The thing is this: is there any way to track the mouse movement (and preferably keyboard too) so that I can tell my site when I am away?
I could do it from an open browser window, but the window would not have focus most of the time... any client will work, I can use whatever is best (I know netscape/mozilla has more efficient onmousemove handling functionality) I would even consider installing some kind of windows software to get this working, it just needs to interact with the web site... Thanks for any input! Peter |
|
#2
|
|||
|
|||
|
RE: tracking mouse/keyboard activity
why don't you simply bild a page with 3 buttons
|
|
#3
|
||||
|
||||
|
RE: tracking mouse/keyboard activity
My friend tried to do something similar he wrote a C++ client so it runs on his pc/PDA and he just opens it up and selects a status and it changes his site to suit but i dont know if that would be going too far but its worth a try. But zombies idea looks like the best.
|
|
#4
|
|||
|
|||
|
RE: tracking mouse/keyboard activity
Thanks for the ideas!
I tried the manual approach but I always forget to change it, and it is just crying out for automation. Besides, there are several applications I can think of that would benefit from such functinoality, so it would be a really useful thing to do. I think a C++ client would be a fine idea, I just don't want to mess with it if it can be done (even with some kind of hack) using existing web-specific programming languages. Thanks again, P |
|
#5
|
|||
|
|||
|
RE: tracking mouse/keyboard activity
i don't think it can be built with php/js/other web stuff..
but, i can build you a simple delphi client that will check for mouse movement every 5 minutes, and when there is mouse movement, it will simply start a php script on the some web server (on the internet). then you just start it both at home and at work, but the one at home will "ping" an address like "http://mysite.com/ping.php?home" and at work will ping "http://mysite.com/ping.php?work" that should do it.. |
|
#6
|
|||
|
|||
|
RE: tracking mouse/keyboard activity
Thanks! you don't have to go to that trouble, zombie
I would like to learn Delphi, perhaps this will be my first delphi program, I may ask you a few questions as I go along? Thanks, Peter |
|
#7
|
|||
|
|||
|
RE: tracking mouse/keyboard activity
sure, no problem. i'll be glad to help..
just post in the general chat forum. ;) |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > tracking mouse/keyboard activity |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|