Fix issue where adding character to group did not work for windows

focused manually or automatically (by user or windows)
This commit is contained in:
2026-01-03 18:41:52 +01:00
parent 323abc232e
commit 29f3146920
2 changed files with 17 additions and 7 deletions

View File

@@ -95,7 +95,7 @@
; Register Hotkey for Add Character to Group if the user has it Set
if (This.AddCharacterToGroupHotkey != "") {
HotIf (*) => WinExist(This.EVEExe)
HotIf (*) => WinActive(This.EVEExe)
try {
Hotkey This.AddCharacterToGroupHotkey, ( * ) => This.AddCharacterToGroup(), "S1"
}
@@ -1226,13 +1226,12 @@
return
targetGroupName := ""
searchCharacter := This.LastActiveCharacter != "" ? This.LastActiveCharacter : currentTitle
if (IsObject(This.Hotkey_Groups) && This.Hotkey_Groups.Count != 0) {
for groupName, groupData in This.Hotkey_Groups {
if (IsObject(groupData["Characters"])) {
for index, charName in groupData["Characters"] {
if (charName = searchCharacter) {
if (charName = currentTitle) {
targetGroupName := groupName
break
}
@@ -1243,6 +1242,17 @@
}
}
if (targetGroupName = "") {
if (IsObject(This.Hotkey_Groups) && This.Hotkey_Groups.Count != 0) {
for groupName, groupData in This.Hotkey_Groups {
if (IsObject(groupData["Characters"]) && groupData["Characters"].Length > 0) {
targetGroupName := groupName
break
}
}
}
}
if (targetGroupName = "")
return