Jump to content
Corsair Community

Corsair ICue match 2 actions to one key


NaClorsair

Recommended Posts

Hey there,

 

I got myself a Darkcore SE and i tried to figure out if i can match 2 actions to 1 key, i mean like: if hold: play previous song, if only pressed "short": skip the song.

 

Can anyone help? I tried it with additional Software and so on, but i found no solution.

 

Thanks.

Link to comment
Share on other sites

AutoHotKey can do this, with the keyName Up:: event, triggered by a remap in iCue. So you could do a remap key in iCUE on you Darkcore SE and then have it lets say for sake of example be F13, your code might look like this:

 

global wasHeld:=false
F13::
if !wasHeld
{
	Clock:=A_TickCount
}
wasHeld:=true
return
F13 Up::
if (A_TickCount >= Clock + 500)
{
	;print("h")
	Send, {Media_Next}
}
else {
	;print("o")
	Send, {MedMedia_Prev}
}
wasHeld:=false
return

Link to comment
Share on other sites

Thank you very much for your response, but it doesn't really work that way, it's:

 

If its pressed twice fast enough, it plays previous track and if its pressed twice but with more than 500ms delay between the 2 clicks, it skips.

 

And there is a mistake in your code: Its MedMedia_Prev, it worked only with Media_Prev xD

 

Is there a possibility to do it with hold and release? Like:

 

Hold more than 500ms: Skip,

Click once: Play previous.

 

Cheers,

NaClorsair

Link to comment
Share on other sites

×
×
  • Create New...