Download Now

    Reference TMouseMonitor

    Declared in Codebot.Input.MouseMonitor.pas on line 35

    TMouseMonitor reports mouse activity anywhere on the screen, even outside the windows of the program. Use the MouseMonitor function to access it.
      TMouseMonitor = class
      public
        { Stop monitoring and destroy the object }
        destructor Destroy; override;
        { Subscribe to mouse activity, starting the monitor if needed }
        procedure Add(Notify: TMouseNotifyEvent);
        { Unsubscribe from mouse activity, stopping the monitor if there are no more
          subscribers }
        procedure Remove(Notify: TMouseNotifyEvent);
      end;

    See also