Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

EG and backgroundTaskHost

If you have a question or need help, this is the place to be.
Post Reply
xhunter
Posts: 14
Joined: Wed Apr 13, 2016 11:17 pm

EG and backgroundTaskHost

Post by xhunter »

hi

eventghost version: 0.5.0 beta4

I have set eventghost to enable and disable certain keys depending on if a specific program is active

for example if kodi is active certain key actions will get enabled
and if say "Task.Deactivated.Kodi" or "Task.Destroyed.Kodi" are triggered those keys will be disabled.

until recently everything has been working fine,
after updating windows 10,
after a while these come up which disables kodi keys:

Code: Select all

Task.Created.backgroundTaskHost
Task.NewWindow.backgroundTaskHost
Task.Deactivated.Kodi
Task.Activated.backgroundTaskHost
Task.Deactivated.backgroundTaskHost
Task.ClosedWindow.backgroundTaskHost
Task.Destroyed.backgroundTaskHost

note, in reality, during and after these events, kodi window was never deactivated and kodi is still in the foreground.
and actions like "Restore" or "Bring to front" have no effect, because kodi is already active.
there isn't even any "Task.Activated.Kodi"

what is this new "backgroundTaskHost" and how can it be ignored?
why is it that other windows are deactivated while they are in fact active when these events happen?

is there any ways to get this fixed?

thanks
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: EG and backgroundTaskHost

Post by kgschlosser »

whatever the Task plugin is showing is what is running on your computer. I do not run windows 10 so I am not 100% familiar with all of the running processes and services of it. Try googling it
If you like the work I have been doing then feel free to Image
xhunter
Posts: 14
Joined: Wed Apr 13, 2016 11:17 pm

Re: EG and backgroundTaskHost

Post by xhunter »

kgschlosser wrote:whatever the Task plugin is showing is what is running on your computer. I do not run windows 10 so I am not 100% familiar with all of the running processes and services of it. Try googling it
thanks for the reply,

I can't be sure about what it does, but from what I gather it is part of windows and some programs use it if they have some background activity, as far as I can tell, it could even be kodi or eventghost using it.

however

I doubt that it it producing any windows (even hidden) or stealing focus from other programs

when EG sees the above "Task.Deactivated.Kodi", disables kodi keys and enables directional keys,
when this happens and kodi keys are infact disabled, directional keys still do work in kodi, because kodi is still in focus.

even if this task is stealing focus (which I doubt), the focus is given back to kodi, but there is no such a task showing "Task.Activated.Kodi"

I think what is happening here is that the activity from "backgroundTaskHost" are hidden and is mistakenly recognized as a new window being produced.
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: EG and backgroundTaskHost

Post by kgschlosser »

ok so this is what i need to do for you. since this seems very specific to Kodi I am going to code up a little Python/EventGhost magic for ya.


here is what i need. if you do not have a problem with sending me this I am going to need your EventGhost save file. this is so that i can take a look see at what you are doing and how you are going about it. and see if i can find the best possible solution.
If you like the work I have been doing then feel free to Image
Post Reply