locked
Event Detection RRS feed

  • Question

  • Hi Everyone,

     

    I have a big project for lcd-kiosk system. I put picture of  architecture of my project to here..

     

     

        Now, I'm coding Core class. This class will get some datas from EventObServer and after It will send to WindowManager. Anad after WindowManager will select which window show that depends on value. 

     

        If I come my problem, EventObServer will detect mouse moving or keyboard pressing. First state (normally) KioskWindow shows and for instance, nobady press some key or move mouse  in2 min, core will say to Windowmanager, Hey show Playerwindow. If someone move mouse or press key then EventObServer sent some value and then Core will send somevalue to WindowManager. and after, WindowManager will show Kiosk again..

     

    I hope, I cant explain it as well. I want, how can I detect this moving/pressing dynamically. Core,EventObServer and WindowManager will be class, and these windows (Kiosk,player and interactive) will be WPF forms.

     

    I need your suggestions.

     

    Thank you

     

    Wednesday, June 8, 2011 9:40 AM

Answers

  • Thank you for attention, Vishvvas...

    I think I solved this problem with IDLE

     

    http://www.codeproject.com/KB/cs/GetIdleTimeWithCS.aspx

     

    I work over this sample and for now, it looks like pretty useful. And also It has keyboard events too :)

    have a nice days..

    • Marked as answer by Min Zhu Monday, June 13, 2011 2:59 AM
    Wednesday, June 8, 2011 12:51 PM

All replies

  • One needs handler to catching the mouse event and triggering it. The available options are using WM_MOUSEMOVE or ImessaFilter. referring you the article for the same.

    http://stackoverflow.com/questions/2063974/how-do-i-capture-the-mouse-mouse-move-event-in-my-winform-application

    Hope this helps.


    Please mark this as "Answer" or "Vote as helpful" if it has resolved your issue/question/problem.
    • Proposed as answer by Gaurava K Arya Wednesday, June 8, 2011 12:01 PM
    Wednesday, June 8, 2011 11:46 AM
  • Thank you for attention, Vishvvas...

    I think I solved this problem with IDLE

     

    http://www.codeproject.com/KB/cs/GetIdleTimeWithCS.aspx

     

    I work over this sample and for now, it looks like pretty useful. And also It has keyboard events too :)

    have a nice days..

    • Marked as answer by Min Zhu Monday, June 13, 2011 2:59 AM
    Wednesday, June 8, 2011 12:51 PM