I'd like to present my work! This is a script that allows you to program various actions and assign them to your mouse buttons.

Here are the advantages of the script:
+ Unlimited quantity of profiles (Corsair software allows only 1)
+ Fast switch between profiles. Just press Win+Z (Corsair soft must be launched, switched to profile via interface and reloaded to mouse memory)
+ Application assignment. Profile will work in windows requested (In fact Corsair doesn't recognize different applications)
+ Functionality of macros limited only with your imagination (Corsair soft not allows mouse button pressing in macros. Also not allows cycles, pre-pressing, post-pressing and so on)
- But this script requires some patience! So, go on and get some and welcome to the club! 8)
:!: Script has been tested with M60 Corsair mouse but also may be used for almost every mouse with 8 or less buttons and vertical scroll wheel.
Let's begin!
Step 1. Assign extended mouse buttons
You need to assign them to hardcoded buttons (listed below). Its a bit lame, but you have to do it only once.
1. Mouse button 4 assign to Numpad 4
2. Mouse button 5 assign to Numpad 5
3. Mouse button 8 assign to Numpad 8 (example on screen below)

:!: If you still want to use some specific mouse button don't assign it. It will be ignored by the script. I personally don't assign mouse button 5, I set it to DPI Select
Step 2. Install script software
1. Install AutoHotkey_L Installer
2. Download and unpack anywhere HardMacro (script, images, example macros)
3. Download SciTE4AutoHotkey - delux macro editor. (This download is optional, Windows notepad.exe will be enough)
Step 3. Create new profile
1. Run script HardMacro.ahk from previously downloaded Hard Macro package

2. Press button "Create profile" and input name of new profile.
3. Select macro from drop-down lists (blue numbers correspond to mouse buttons).
Step 4. Get application window name
1. Press "Get application window name" button. Window spy will be launched.
2. Open your application where you will use macros in windowed mode.
3. Switch to application and Window spy will show something like that (on screen below there is the window information of Battlefield Heroes game shown):

4. Copy window name from section ">>>>>>(Window Title & Class)<<<<<<". You will need part of name displayed after ahk_class (underlined with red).
5. Paste window name to the field Application of Hard Macro window.
Step 5. Edit macros
1. Press button "Edit macro" on the right of drop-down lists with macro names. Macro will be open for editing.
2. When you finish editing just save script and close editor.
3. If you want to create new macro create new .ahk file in Macros folder. When new macro created restart Hard Macro.
:!: Macro's file name must match label name of this macro's subroutine. Thus macro 5_Run_Heal.ahk has subroutine named 5_Run_Heal:
4. Press "Save" button. Profile will be saved to HardMacro.ini.
5. Press "Launch" button. Hard Macro will generate and run script MacroScript.ahk. Icon
will be shown in your system tray. If you want to stop script press right mouse button on that icon and select "Exit".6. Press Win+Z to switch between profiles.
Thats it!
Thank you for attention. Have fun! :wink:
p.s. If you found a bug or have some ideas about my program - let me know!
_________________
To Do list:
1. Add "Create macro" button for every drop-down list. Giving to user a list of templates so will be easier to create new macro.
2. Version for M90 Corsair mouse (if anyone be interested)
3. Switch between profiles inside one application
4. Sounds when mouse over and buttons clicks
5. Keyboard macros









