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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user