This UDF allows to set an events handler for Mouse device. The beginning... I searched for a way to disable the Mouse Primary click, and be able to call some function when the click event is received... Big thanks to amel27 for this one, i only organized the whole stuff to UDF style. Example:
#include <GUIConstantsEx.au3>
#include "MouseOnEvent.au3"
HotKeySet("{ESC}", "_Quit")
_Example_Intro()
_Example_Limit_Window(