The Corsair User Forums  

Go Back   The Corsair User Forums > Corsair Product Discussion > iCUE Software

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 04-03-2019, 06:07 AM
CodyCox CodyCox is offline
Registered User
 
Join Date: Apr 2019
Posts: 4
POST ID # = 1000082
CodyCox Reputation: 10
Angry Toggle OR if/else for macros - iCue - K95 Platinum

I'm trying to setup a macro toggle that'll minimize all desktop windows, and then maximize when pressed again.

The sequence for this is:

Minimize:
Win key + M

Maximize:
Win key + Shift + M

Now, you can minimize/maximize with "Win key + D", but the state is forgotten the moment you click on something while windows are minimized. With "Win key + Shift + M" it returns to the state before you minimized.

I can easily setup 2 macro keys, but I'd rather use only one, and make it function like a toggle.

An "if pressed/activated and pressed again, then"-function would be ideal.

Is this at all possible? Haven't found anything on the Gorg, and I'm pretty sure the built in "toggle" doesn't work like this. Only the "while pressed" has the ability to do a "second action".
Reply With Quote
  #2  
Old 04-03-2019, 09:38 AM
Danny van Liero Danny van Liero is offline
Registered User
Danny van Liero's PC Specs
 
Join Date: Mar 2019
Posts: 24
POST ID # = 1000097
Danny van Liero Reputation: 10
Default

I think you can't, why I thought you could.

Example : macro 1 with an "second action" macro 2

macro 1: press key A
macro 2: press key B

The problem starts that you can't do "on release" on macro 1, followed by an other macro 2.

Maybe its possible when you use the old iCue,
it had less limits then the new one, at least I think so, also because I am still waiting for answers on topics :)
Reply With Quote
  #3  
Old 04-03-2019, 01:20 PM
CodyCox CodyCox is offline
Registered User
 
Join Date: Apr 2019
Posts: 4
POST ID # = 1000120
CodyCox Reputation: 10
Default

Yeah Danny, I ran into that exact issue.

Hopefully someone has a solution.
Reply With Quote
  #4  
Old 04-11-2019, 03:39 AM
CodyCox CodyCox is offline
Registered User
 
Join Date: Apr 2019
Posts: 4
POST ID # = 1001122
CodyCox Reputation: 10
Default

Anyone know how?
Reply With Quote
  #5  
Old 04-11-2019, 11:27 PM
hastegag hastegag is offline
Registered User
hastegag's PC Specs
 
Join Date: Dec 2016
Location: Northeast US
Posts: 896
POST ID # = 1001200
hastegag Reputation: 20
Default

There are better ways, but here is an autohotkey solution albeit not a glam one:
Code:
global toggler:=false
F13::
	if !toggler {
		;tooltip here1
		Send {LWin down}
		Send m
		Send {LWin up}
		toggler:=!toggler
	}
	else
	{
		;tooltip here2
		Send {LWin down}
		Send {Shift down}
		Send m
		Send {Shift up}
		Send {LWin up}
		toggler:=!toggler
	}
return
Reply With Quote
  #6  
Old 04-14-2019, 06:02 AM
CodyCox CodyCox is offline
Registered User
 
Join Date: Apr 2019
Posts: 4
POST ID # = 1001398
CodyCox Reputation: 10
Default

Awesome, thanks very much hastegag.

Help a newb out; where exactly do I input this?
Reply With Quote
  #7  
Old 04-14-2019, 11:13 AM
hastegag hastegag is offline
Registered User
hastegag's PC Specs
 
Join Date: Dec 2016
Location: Northeast US
Posts: 896
POST ID # = 1001415
hastegag Reputation: 20
Default

you need to download and install autohotkey: https://www.autohotkey.com/download/ahk-install.exe

Then you would copy the code above and save it to a new file on your desktop for example, making sure the extension is .ahk and not .txt

Then you can tell icue to run it i think, but you may need to right click and select "compile" first, which will not appear until autohotkey is installed and possibly after you have rebooted since the install.
Reply With Quote
Reply

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 03:06 PM.


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