The Corsair User Forums  

Go Back   The Corsair User Forums > Corsair Product Discussion > Keyboards and Mice

Notices

Reply
 
Thread Tools Search this Thread Rating: Thread Rating: 208 votes, 5.00 average. Display Modes
  #121  
Old 02-20-2015, 06:39 AM
Laufer's Avatar
Laufer Laufer is offline
Registered User
 
Join Date: Feb 2012
Location: Moscow
Posts: 149
POST ID # = 761569
Laufer Reputation: 10
Default

Quote:
Originally Posted by riqueseven View Post
I can not open the Hardmacro_M60.ahk of the hardmacro, what's this?
Looks like you use wrong version of AHK. Uninstall your version and try this one.
__________________
Wanna cool macro? Check this out!
Reply With Quote


  #122  
Old 02-20-2015, 06:49 AM
Laufer's Avatar
Laufer Laufer is offline
Registered User
 
Join Date: Feb 2012
Location: Moscow
Posts: 149
POST ID # = 761573
Laufer Reputation: 10
Default

Quote:
Originally Posted by Sailing96 View Post
I have an M90 and I would like to make button 14 toggle the function of button 1 (left click) between its regular single click function and a repeat function to be used as rapid fire in some games.
This problem could be solved in two ways:
1) Create one profile for each game and assign specific macro for those games. For first make rapid fire, for second - just LMB click (or leave it blank).
2) As you wanted - a toggle button. You can assign new variable in your script and toggle it by your 14th button. This method have one minus - you must remember if your rapid fire mode on or off. Sometimes it can be annoying. But if you interested - let me know - I will help you with the programming.
__________________
Wanna cool macro? Check this out!
Reply With Quote


  #123  
Old 02-20-2015, 02:22 PM
IncognitoToe IncognitoToe is offline
Registered User
 
Join Date: Feb 2015
Posts: 8
POST ID # = 761678
IncognitoToe Reputation: 10
Default

Hi I tried this and it didn't work... just to be clear I only want the LMB spammer for mouse button 7 on my M65.
Reply With Quote


  #124  
Old 02-20-2015, 04:09 PM
Laufer's Avatar
Laufer Laufer is offline
Registered User
 
Join Date: Feb 2012
Location: Moscow
Posts: 149
POST ID # = 761705
Laufer Reputation: 10
Default

Quote:
Originally Posted by IncognitoToe View Post
Hi I tried this and it didn't work... just to be clear I only want the LMB spammer for mouse button 7 on my M65.
Its hard to help when answer is "it didn't work". I need to know what did you tried, what points of instructions worked well and where did you stopped. More information you give - easier for me to give you right directions.
__________________
Wanna cool macro? Check this out!
Reply With Quote


  #125  
Old 02-20-2015, 04:51 PM
IncognitoToe IncognitoToe is offline
Registered User
 
Join Date: Feb 2015
Posts: 8
POST ID # = 761714
IncognitoToe Reputation: 10
Default

Quote:
Originally Posted by Laufer View Post
Its hard to help when answer is "it didn't work". I need to know what did you tried, what points of instructions worked well and where did you stopped. More information you give - easier for me to give you right directions.
Right, sorry I was vague. I did exactly what you told me to do, added a macro with the pencil tool, copied the code in, saved and clicked launch, switched to CSGO and tried using button 7, did not even perform LMB, not even on one click or click and hold.
Reply With Quote


  #126  
Old 02-21-2015, 04:43 AM
Laufer's Avatar
Laufer Laufer is offline
Registered User
 
Join Date: Feb 2012
Location: Moscow
Posts: 149
POST ID # = 761825
Laufer Reputation: 10
Default

Quote:
Originally Posted by IncognitoToe View Post
Right, sorry I was vague. I did exactly what you told me to do, added a macro with the pencil tool, copied the code in, saved and clicked launch, switched to CSGO and tried using button 7, did not even perform LMB, not even on one click or click and hold.
Ok, lets see if problem with macro code or with CSGO (some games don't work with Autohotkey). Try this one:
1) Create new macro for buttons 7, for example:
Code:
MacroTest:
Send Hello
return
2) Clear Application box in HardMacro and press Launch.
3) Open Windows Notepad or Word and press button 7.

If you see text "Hello" appear in text box - then macro is ok. Next step - try to press button 7 while in game CSGO. Click in chat box so cursor start to blink and press button 7. See any "Hello" text?

Also make sure that name of macro same as its filename. For example in sample code above name is MacroTest and its filename is MacroTest.ahk. By default they are same but weird things may happen.
__________________
Wanna cool macro? Check this out!
Reply With Quote


  #127  
Old 02-21-2015, 07:59 AM
IncognitoToe IncognitoToe is offline
Registered User
 
Join Date: Feb 2015
Posts: 8
POST ID # = 761844
IncognitoToe Reputation: 10
Default

I did exactly what you said - but no "Hello" appeared in both Word or Notepad. You said that I didn't need to reassign any of the buttons in the Corsair software, just saying I left buttons 6 and 7 as -No Function- buttons.
Reply With Quote


  #128  
Old 02-21-2015, 10:07 AM
Laufer's Avatar
Laufer Laufer is offline
Registered User
 
Join Date: Feb 2012
Location: Moscow
Posts: 149
POST ID # = 761866
Laufer Reputation: 10
Default

Quote:
Originally Posted by IncognitoToe View Post
I did exactly what you said - but no "Hello" appeared in both Word or Notepad. You said that I didn't need to reassign any of the buttons in the Corsair software, just saying I left buttons 6 and 7 as -No Function- buttons.
And thats must be a problem. I've said "don't reassign" meaning that you leave them as default Forward and Backward. Try to set buttons 6 and 7 to "Forward" and "Backward" accordingly. And repeat "Hello"-solution.
__________________
Wanna cool macro? Check this out!
Reply With Quote


  #129  
Old 02-21-2015, 02:18 PM
IncognitoToe IncognitoToe is offline
Registered User
 
Join Date: Feb 2015
Posts: 8
POST ID # = 761916
IncognitoToe Reputation: 10
Default

Quote:
Originally Posted by Laufer View Post
And thats must be a problem. I've said "don't reassign" meaning that you leave them as default Forward and Backward. Try to set buttons 6 and 7 to "Forward" and "Backward" accordingly. And repeat "Hello"-solution.
Ok so I've set them back to default, forward and backward. I tried the "Hello" solution and it did not output "Hello", it just did its default function of going forward in the browser.
Reply With Quote


  #130  
Old 02-21-2015, 04:02 PM
Laufer's Avatar
Laufer Laufer is offline
Registered User
 
Join Date: Feb 2012
Location: Moscow
Posts: 149
POST ID # = 761939
Laufer Reputation: 10
Default

Quote:
Originally Posted by IncognitoToe View Post
Ok so I've set them back to default, forward and backward. I tried the "Hello" solution and it did not output "Hello", it just did its default function of going forward in the browser.
Ok. Close HardMacro (see "H" icon in system tray). Create new script and launch it:
Code:
XButton1::
Send Hello
return
This simple code will work without HardMacro - just double click it and try to push button 7 in notepad.
__________________
Wanna cool macro? Check this out!
Reply With Quote


  #131  
Old 02-21-2015, 04:13 PM
IncognitoToe IncognitoToe is offline
Registered User
 
Join Date: Feb 2015
Posts: 8
POST ID # = 761942
IncognitoToe Reputation: 10
Default

Yes! it finally works! it does output "Hello" this time. It also works in CSGO. Now how do I get my click and hold to spam LMB?
Reply With Quote


  #132  
Old 02-21-2015, 04:36 PM
Laufer's Avatar
Laufer Laufer is offline
Registered User
 
Join Date: Feb 2012
Location: Moscow
Posts: 149
POST ID # = 761947
Laufer Reputation: 10
Default

Quote:
Originally Posted by IncognitoToe View Post
Yes! it finally works! it does output "Hello" this time. It also works in CSGO. Now how do I get my click and hold to spam LMB?
If this is only thing you want its easier for you to launch this simple macro:
For Button 6
Code:
*$XButton2::
	while GetKeyState("XButton2", "P")
	{
		Send {LButton down}
		Sleep, 50
		Send {LButton up}
		Sleep, 50
	}
return
For Button 7
Code:
*$XButton1::
	while GetKeyState("XButton1", "P")
	{
		Send {LButton down}
		Sleep, 50
		Send {LButton up}
		Sleep, 50
	}
return
__________________
Wanna cool macro? Check this out!
Reply With Quote


  #133  
Old 02-21-2015, 05:26 PM
IncognitoToe IncognitoToe is offline
Registered User
 
Join Date: Feb 2015
Posts: 8
POST ID # = 761958
IncognitoToe Reputation: 10
Default

That works thank you very much. And what if I would like to have this AND be able to have single key press for x on the sniper button, button 8.
Reply With Quote


  #134  
Old 02-21-2015, 05:39 PM
Laufer's Avatar
Laufer Laufer is offline
Registered User
 
Join Date: Feb 2012
Location: Moscow
Posts: 149
POST ID # = 761962
Laufer Reputation: 10
Default

Quote:
Originally Posted by IncognitoToe View Post
That works thank you very much. And what if I would like to have this AND be able to have single key press for x on the sniper button, button 8.
It depends if you assiged button 8 to F15 as described in my instructions (see first post of that thread). Maybe its easier to use Corsair software to assign single keystroke "X".
__________________
Wanna cool macro? Check this out!
Reply With Quote


  #135  
Old 02-21-2015, 05:46 PM
IncognitoToe IncognitoToe is offline
Registered User
 
Join Date: Feb 2015
Posts: 8
POST ID # = 761963
IncognitoToe Reputation: 10
Default

Quote:
Originally Posted by Laufer View Post
It depends if you assiged button 8 to F15 as described in my instructions (see first post of that thread). Maybe its easier to use Corsair software to assign single keystroke "X".
Oh right, so I wouldn't need to reassign it. For the time being, I'll leave you alone now
Thank you very much.
Reply With Quote


Reply

Tags
autohotkey, m60, macro

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:27 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.