#include <MouseOnEvent.au3>
HotKeySet("{ESC}", "_Quit")
_MouseSetOnEvent($MOUSE_MOVE_EVENT, "_Mouse_Event", 0, 1)
_MouseSetOnEvent($MOUSE_PRIMARYDOWN_EVENT, "_Mouse_Event", 0, 1)
_MouseSetOnEvent($MOUSE_PRIMARYUP_EVENT, "_Mouse_Event", 0, 1)
_MouseSetOnEvent($MOUSE_PRIMARYDBLCLK_EVENT, "_Mouse_Event", 0, 1)
_MouseSetOnEvent($MOUSE_SECONDARYDOWN_EVENT, "_Mouse_Event", 0, 1)
_MouseSetOnEvent($MOUSE_SECONDARYUP_EVENT, "_Mouse_Event", 0, 1)
_MouseSetOnEvent($MOUSE_SECONDARYDBLCLK_EVENT, "_Mouse_Event", 0, 1)
_MouseSetOnEvent($MOUSE_WHEELDOWN_EVENT, "_Mouse_Event", 0, 1)
_MouseSetOnEvent($MOUSE_WHEELUP_EVENT, "_Mouse_Event", 0, 1)
_MouseSetOnEvent($MOUSE_WHEELDBLCLK_EVENT, "_Mouse_Event", 0, 1)
_MouseSetOnEvent($MOUSE_WHEELSCROLL_EVENT, "_Mouse_Event", 0, 1)
_MouseSetOnEvent($MOUSE_WHEELSCROLLDOWN_EVENT, "_Mouse_Event", 0, 1)
_MouseSetOnEvent($MOUSE_WHEELSCROLLUP_EVENT, "_Mouse_Event", 0, 1)
_MouseSetOnEvent($MOUSE_XBUTTONDOWN_EVENT, "_Mouse_Event", 0, 1)
_MouseSetOnEvent($MOUSE_XBUTTONUP_EVENT, "_Mouse_Event", 0, 1)
_MouseSetOnEvent($MOUSE_XBUTTONDBLCLK_EVENT, "_Mouse_Event", 0, 1)
_MouseSetOnEvent($MOUSE_XBUTTON2DOWN_EVENT, "_Mouse_Event", 0, 1)
_MouseSetOnEvent($MOUSE_XBUTTON2UP_EVENT, "_Mouse_Event", 0, 1)
_MouseSetOnEvent($MOUSE_XBUTTON2DBLCLK_EVENT, "_Mouse_Event", 0, 1)
Sleep(10000)
_MouseSetOnEvent($MOUSE_MOVE_EVENT)
_MouseSetOnEvent($MOUSE_PRIMARYDOWN_EVENT)
_MouseSetOnEvent($MOUSE_PRIMARYUP_EVENT)
_MouseSetOnEvent($MOUSE_PRIMARYDBLCLK_EVENT)
_MouseSetOnEvent($MOUSE_SECONDARYDOWN_EVENT)
_MouseSetOnEvent($MOUSE_SECONDARYUP_EVENT)
_MouseSetOnEvent($MOUSE_SECONDARYDBLCLK_EVENT)
_MouseSetOnEvent($MOUSE_WHEELDOWN_EVENT)
_MouseSetOnEvent($MOUSE_WHEELUP_EVENT)
_MouseSetOnEvent($MOUSE_WHEELDBLCLK_EVENT)
_MouseSetOnEvent($MOUSE_WHEELSCROLL_EVENT)
_MouseSetOnEvent($MOUSE_WHEELSCROLLDOWN_EVENT)
_MouseSetOnEvent($MOUSE_WHEELSCROLLUP_EVENT)
_MouseSetOnEvent($MOUSE_XBUTTONDOWN_EVENT)
_MouseSetOnEvent($MOUSE_XBUTTONUP_EVENT)
_MouseSetOnEvent($MOUSE_XBUTTONDBLCLK_EVENT)
_MouseSetOnEvent($MOUSE_XBUTTON2DOWN_EVENT)
_MouseSetOnEvent($MOUSE_XBUTTON2UP_EVENT)
_MouseSetOnEvent($MOUSE_XBUTTON2DBLCLK_EVENT)
While 1
Sleep(100)
WEnd
Func _Mouse_Event()
;~ ToolTip('Мышка заблокирована')
EndFunc
Func _Quit()
Exit
EndFunc