Skip to content

Commit

Permalink
quick fix command multiple group
Browse files Browse the repository at this point in the history
  • Loading branch information
etofok committed May 18, 2024
1 parent 5c2d7a2 commit b4a01b4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Modules/module_CommandMultipleGroups.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ if (b_CommandMultipleGroups == 1) {
CommandMultipleGroups(modifiers, objCommand) {

Loop, % ControlGroups.MaxIndex() {
if (ControlGroups[A_Index].commandThisGroup == 1) {
Send % ControlGroups[A_Index].logicalKey
i := ControlGroups.MaxIndex() - A_Index + 1
if (ControlGroups[i].commandThisGroup == 1) {
Send % ControlGroups[i].logicalKey
Send % modifiers objCommand.logicalKey
}
}
Expand Down

0 comments on commit b4a01b4

Please sign in to comment.