NetMage
287 discussion posts
It seems like the Window Focused event occurs before the Window Triggered event.
Is there a particular reason for this? It seems to me having the Created event occur first would be better, since you can't really tell during the Focused event you are dealing with a new window or a previous window.
That's very strange, I haven't run into that issue here. Does it happen with all applications, or just sometimes with certain ones?
NetMage
287 discussion posts
I'm not sure what programs cause it, but it happens fairly often with the Scripted editor in the DF Settings.
I open DF Settings, select the Functions pane, double-click one of my Scripted Functions, and then I hear the events (that I have setup to play audio). I hear the Window Focused event most of the time, and the Window Created event is often delayed. Occasionally the Window Focused event doesn't happen at all.
NetMage
287 discussion posts
It seems like they are happening better/faster, so it is hard to tell, but it still sounds like the Window Focused event is happening before the Window Created event.
NetMage
287 discussion posts
I enabled L1 Logging and the events seem okay, but now I see a bigger issue.
I am getting my Window Created trigger executed when I change focus to certain windows.
It is consistent with the script editor window - every time I focus the DF script editor window, I hear the sound for the Window Created function and in the L1 log, I see the function being run, though I can't tell why. It doesn't happen with every window, but there are other windows where focusing the window runs the Window Created trigger.