-
Hello, first of all: thanks for making This would probably be more a question for Autohotkey. I did look through their doc and forums but I could make much sense of what I was reading. I work with multiple monitors and I was trying to setup autohotkey to perform monitor specific operations by first checking which monitor is the one that's currently focused. For example, in normal powershell I would disable container padding on the current monitor by doing komorebic.exe container-padding $(komorebic query focused-monitor-index) 0 0 I thought I could do something similar in Autohotkey CurrentMonitorContainerPadding(workspace, size) {
Run, komorebic.exe container-padding $(komorebic query focused-monitor-index) %workspace% %size%, , Hide
}
!-::
CurrentMonitorContainerPadding(0, 0)
return However this doesn't seem to work (it doesn't do anything). I realize this might not be valid autohotkey syntax. Does anyone have any pointer as to how to best accomplish this? Thanks! edit: I know that I can use |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @tupini07, In this particular situation, I believe you may be able to use this command which targets the focused workspace before changing the padding:
However, for more complex uses of subqueries, I think your best bet will be to wrap the command in a PowerShell script and then use AHK to call the script file. |
Beta Was this translation helpful? Give feedback.
Hey @tupini07,
In this particular situation, I believe you may be able to use this command which targets the focused workspace before changing the padding:
However, for more complex uses of subqueries, I think your best bet will be to wrap the command in a PowerShell script and then use AHK to call the script file.