Overclock.net › Forums › Components › Keyboards › Other Macro options
New Posts  All Forums:Forum Nav:

Other Macro options

post #1 of 4
Thread Starter 
I doubt this is the right place to ask this.

I want to make a macro that will hold a delay for as long as i hold the key, then when the key is released, i can complete the macro

is this doable? i have the Razer Synapse software
Mah Compuhorse
(14 items)
 
  
CPUMotherboardGraphicsRAM
Intel i7 930 @4Ghz Evga SLI3 EVGA GTX 760 4gb G.Skill 12gb 
Hard DriveHard DriveCoolingOS
OCZ Vertex 3  WD Green 1tb Corsair H60 Windows 8 Ultimate 
KeyboardPowerCaseMouse
CoolerMaster Quickfire Rapid-I Kingwin 800 Corsair Obsidian 450d Razer Mamba 
Mouse PadAudio
Razer Destructor Lenpai 2020+ amp with Zenith Allegro speakers 
  hide details  
Reply
Mah Compuhorse
(14 items)
 
  
CPUMotherboardGraphicsRAM
Intel i7 930 @4Ghz Evga SLI3 EVGA GTX 760 4gb G.Skill 12gb 
Hard DriveHard DriveCoolingOS
OCZ Vertex 3  WD Green 1tb Corsair H60 Windows 8 Ultimate 
KeyboardPowerCaseMouse
CoolerMaster Quickfire Rapid-I Kingwin 800 Corsair Obsidian 450d Razer Mamba 
Mouse PadAudio
Razer Destructor Lenpai 2020+ amp with Zenith Allegro speakers 
  hide details  
Reply
post #2 of 4
AFAIK you can only record/play macros with synapse with very limited editing. I used to use macros on my Naga and there's not much you can do to simulate what you want as the software only records. The only things you can really change are the timings and where the clicks are pressed. For holding and releasing buttons you're better off with AutoHotkey. I used it a lot in games where the zoom button was hold and not click to turn it off and on.

Here's a sample I wrote for holding the middle mouse button down by just clicking the middle mouse button once.
Code:
Loop
{
KeyWait, MButton, D
KeyWait, MButton
Send, {Click down middle}
KeyWait, MButton, D
KeyWait, MButton
Send, {Click up middle}
}
;~LButton::
;Loop
;{
;Sleep 15
;GetKeyState, LButtonState, LButton, P
;if LButtonState = U
;break
;MouseClick, Left
;}


AFAIK it's nearly impossible to hold a delay. Macros are made to be played back exactly with whatever perfect timings you want in there with them. The only thing I can think of would be something in the world of programming called an interrupt or a breakpoint. You could try to find a macro software that stops when you hit X button or something but it still wouldn't really help because you would have to guess in milliseconds where and what the macro is playing. Without knowing further what exactly you're trying to do I'm going to say impossible.
Skylake Is Here!
(17 items)
 
  
CPUMotherboardGraphicsRAM
Intel i7 6700K Batch #L535B021 4.7Ghz @ 1.296V GIGABYTE G1 Gaming GA-Z170X-Gaming 7 EVGA Geforce GTX 970 SSC ACX 2.0+ G.SKILL TridentZ 16GB DDR4 3000 
Hard DriveHard DriveHard DriveCooling
Samsung 950 Pro M.2 512GB  Crucial BX100 250 GB SanDisk SSDPlus 240 GB NZXT Kraken X61  
OSMonitorKeyboardPower
Windows 8.1 & 10 Dell UltraSharp 2913WM 21:9 2560x1080 Ducky Shine 4, CODE WASD, Deck Legend, G710+ EVGA SuperNova G2 850W 
CaseMouseMouse PadAudio
Phanteks Enthoo Evolv ATX Mid-Tower Ducky Secret SteelSeries Fostex Purple Heart TH-X00 
Audio
AKG K553 Pro, Philips SHP9500, Superlux 668B, S... 
  hide details  
Reply
Skylake Is Here!
(17 items)
 
  
CPUMotherboardGraphicsRAM
Intel i7 6700K Batch #L535B021 4.7Ghz @ 1.296V GIGABYTE G1 Gaming GA-Z170X-Gaming 7 EVGA Geforce GTX 970 SSC ACX 2.0+ G.SKILL TridentZ 16GB DDR4 3000 
Hard DriveHard DriveHard DriveCooling
Samsung 950 Pro M.2 512GB  Crucial BX100 250 GB SanDisk SSDPlus 240 GB NZXT Kraken X61  
OSMonitorKeyboardPower
Windows 8.1 & 10 Dell UltraSharp 2913WM 21:9 2560x1080 Ducky Shine 4, CODE WASD, Deck Legend, G710+ EVGA SuperNova G2 850W 
CaseMouseMouse PadAudio
Phanteks Enthoo Evolv ATX Mid-Tower Ducky Secret SteelSeries Fostex Purple Heart TH-X00 
Audio
AKG K553 Pro, Philips SHP9500, Superlux 668B, S... 
  hide details  
Reply
post #3 of 4
Thread Starter 
Quote:
Originally Posted by anoob View Post

AFAIK you can only record/play macros with synapse with very limited editing. I used to use macros on my Naga and there's not much you can do to simulate what you want as the software only records. The only things you can really change are the timings and where the clicks are pressed. For holding and releasing buttons you're better off with AutoHotkey. I used it a lot in games where the zoom button was hold and not click to turn it off and on.

Here's a sample I wrote for holding the middle mouse button down by just clicking the middle mouse button once.
Code:
Loop
{
KeyWait, MButton, D
KeyWait, MButton
Send, {Click down middle}
KeyWait, MButton, D
KeyWait, MButton
Send, {Click up middle}
}
;~LButton::
;Loop
;{
;Sleep 15
;GetKeyState, LButtonState, LButton, P
;if LButtonState = U
;break
;MouseClick, Left
;}


AFAIK it's nearly impossible to hold a delay. Macros are made to be played back exactly with whatever perfect timings you want in there with them. The only thing I can think of would be something in the world of programming called an interrupt or a breakpoint. You could try to find a macro software that stops when you hit X button or something but it still wouldn't really help because you would have to guess in milliseconds where and what the macro is playing. Without knowing further what exactly you're trying to do I'm going to say impossible.

Thanks for the info, Perhaps if i explain what i want to do, i get a possible solution

me and my friends use skype when we play our games, but i personally prefer the click to talk style of vent, so i figured, if i can hold a key to unmute my mic, i can have that style of chat on skype.
Mah Compuhorse
(14 items)
 
  
CPUMotherboardGraphicsRAM
Intel i7 930 @4Ghz Evga SLI3 EVGA GTX 760 4gb G.Skill 12gb 
Hard DriveHard DriveCoolingOS
OCZ Vertex 3  WD Green 1tb Corsair H60 Windows 8 Ultimate 
KeyboardPowerCaseMouse
CoolerMaster Quickfire Rapid-I Kingwin 800 Corsair Obsidian 450d Razer Mamba 
Mouse PadAudio
Razer Destructor Lenpai 2020+ amp with Zenith Allegro speakers 
  hide details  
Reply
Mah Compuhorse
(14 items)
 
  
CPUMotherboardGraphicsRAM
Intel i7 930 @4Ghz Evga SLI3 EVGA GTX 760 4gb G.Skill 12gb 
Hard DriveHard DriveCoolingOS
OCZ Vertex 3  WD Green 1tb Corsair H60 Windows 8 Ultimate 
KeyboardPowerCaseMouse
CoolerMaster Quickfire Rapid-I Kingwin 800 Corsair Obsidian 450d Razer Mamba 
Mouse PadAudio
Razer Destructor Lenpai 2020+ amp with Zenith Allegro speakers 
  hide details  
Reply
post #4 of 4
It can be done in AHK then, someone already did it. You just need to copy and paste the code into a text file and do some minor modifications and install AHK.

Link is here.
Skylake Is Here!
(17 items)
 
  
CPUMotherboardGraphicsRAM
Intel i7 6700K Batch #L535B021 4.7Ghz @ 1.296V GIGABYTE G1 Gaming GA-Z170X-Gaming 7 EVGA Geforce GTX 970 SSC ACX 2.0+ G.SKILL TridentZ 16GB DDR4 3000 
Hard DriveHard DriveHard DriveCooling
Samsung 950 Pro M.2 512GB  Crucial BX100 250 GB SanDisk SSDPlus 240 GB NZXT Kraken X61  
OSMonitorKeyboardPower
Windows 8.1 & 10 Dell UltraSharp 2913WM 21:9 2560x1080 Ducky Shine 4, CODE WASD, Deck Legend, G710+ EVGA SuperNova G2 850W 
CaseMouseMouse PadAudio
Phanteks Enthoo Evolv ATX Mid-Tower Ducky Secret SteelSeries Fostex Purple Heart TH-X00 
Audio
AKG K553 Pro, Philips SHP9500, Superlux 668B, S... 
  hide details  
Reply
Skylake Is Here!
(17 items)
 
  
CPUMotherboardGraphicsRAM
Intel i7 6700K Batch #L535B021 4.7Ghz @ 1.296V GIGABYTE G1 Gaming GA-Z170X-Gaming 7 EVGA Geforce GTX 970 SSC ACX 2.0+ G.SKILL TridentZ 16GB DDR4 3000 
Hard DriveHard DriveHard DriveCooling
Samsung 950 Pro M.2 512GB  Crucial BX100 250 GB SanDisk SSDPlus 240 GB NZXT Kraken X61  
OSMonitorKeyboardPower
Windows 8.1 & 10 Dell UltraSharp 2913WM 21:9 2560x1080 Ducky Shine 4, CODE WASD, Deck Legend, G710+ EVGA SuperNova G2 850W 
CaseMouseMouse PadAudio
Phanteks Enthoo Evolv ATX Mid-Tower Ducky Secret SteelSeries Fostex Purple Heart TH-X00 
Audio
AKG K553 Pro, Philips SHP9500, Superlux 668B, S... 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Keyboards
Overclock.net › Forums › Components › Keyboards › Other Macro options