I have got a freeware named MouseWrangler for you using which you can simulate keystrokes, run windows applications or files and map various windows tasks like opening programs, closing programs, minimizing programs, saving files and so on. MouseWrangler can also be used to start external macro programs. The application can detect the mouse movement in Up, Down, Left, Right directions. It can also detect diagonal movements.
After you download and install the software there will be an icon created in your system tray. When you will right click on this icon a pop up will open which will have options like configure, Edit Gestures, About and Exit MouseWrangler.
Above window will open when you will select the first window in the pop up menu i.e. Configuration. The configuration menu has various options like Gestures, Help Popup, Scratchpad, Diagonals and Misc which can be selected to modify the mouse properties. The Gestures menu has various options that will help you to classify the movement done to get a mouse gesture recognized. The various properties that can be changed to get a mouse gesture recognized according to the movement that we want are Minimum length required to move per gesture direction, Speed required moving per gesture direction and Distance required to move per gesture direction.
The Help Popup menu has the option to increase or decrease the time required to show the popup. It also has an option to Enable the help Popup by selecting the check box for it, it is enabled by default.
The Scratchpad Popup menu has the option to increase or decrease the time to wait for auto-closing. It also has an option to Enable the Scratchpad by selecting the check box for it, it is enabled by default.
The Diagonals menu option has options to Enable Diagonal Movements, Enable Suggestions Popup and Enable Auto Corrections.
The Misc menu option contains the option to disable the Right Click mouse monitoring movement. The software captures the movements made by the mouse when they are made after pressing the Right Click key of the mouse. In order to disable this monitoring we can press Scroll Key and repress to enable it.
The window will open when you will select the Edit Gestures option in the pop up menu. When you will click on the above drop down you will get all the tasks that are currently running in windows for which you can define gestures. If you want to define gesture for a custom made task then select New Gesture.
When you will click on New Gesture this window will open to let you define the gesture which can be any unique combination of the four gesture movements and then press Next.
These are the option that you will get to associate with a mouse gesture.
Related: Run Programs, Perform Any Task In Windows With Mouse Gestures – Read here