I've a very annoying defect on my system, sometimes there is a window popping up, and I don't know what it is because it can only be seen for a few milliseconds, I don't see much more than the blinking of the title bar of the currently active application. First I thought it was Anki because I use that a lot, but later I also noticed it in Sublime Text and MusicBee.
If I remember correctly, a Win32 hooking API exists for window activation, or I try to record the screen until it happens. I need to find out which crappy process is the culprit, any ideas for a simple solution?
How to log activated windows?
Re: How to log activated windows?
Code: Select all
#SingleInstance Force
Loop {
WinWaitNotActive, A
SoundBeep, 1500
WinGet, proc, ProcessName, A
ToolTip, % list := proc (list ? "`n" : "") list
}
Re: How to log activated windows?
The God!
Have found any drawback in my code or approach? Please, point it out. /The moderator ordered to remove the rest of the signature, I had obeyed.
And I really apologize for our russian president. Being a citizen of an aggressor country is very shameful. Personally I tried to avoid this trying to defend elections from fraud being a member of the election commission of one of the precincts but only was subjected to a hooligan attack and right before the vote count was illegally escorted from the polling station and spent the night behind bars (in jail) in a result of illegal actions of corrupt policemen.
And I really apologize for our russian president. Being a citizen of an aggressor country is very shameful. Personally I tried to avoid this trying to defend elections from fraud being a member of the election commission of one of the precincts but only was subjected to a hooligan attack and right before the vote count was illegally escorted from the polling station and spent the night behind bars (in jail) in a result of illegal actions of corrupt policemen.
Re: How to log activated windows?
@mikeyww
Thanks for helping. I was not able to fix the issue. Meanwhile, I recorded the screen with OBS, and this showed the title bar changes color a few milliseconds indicating that the application loses focus shortly, but there didn't appear another window on screen or in the taskbar, at least not in the recording.
Thanks for helping. I was not able to fix the issue. Meanwhile, I recorded the screen with OBS, and this showed the title bar changes color a few milliseconds indicating that the application loses focus shortly, but there didn't appear another window on screen or in the taskbar, at least not in the recording.
Re: How to log activated windows?
Did mikeyww’s script indicate any changes in the active window? You haven’t mentioned that you used it.
Re: How to log activated windows?
that script relies on the window actually becoming the foreground window. if it doesnt do that, then nothing gets logged obviously
if that is the case, u can monitor window creation using a WinEventHook
if that is the case, u can monitor window creation using a WinEventHook
Re: How to log activated windows?
Maybe this will work?
Code: Select all
#SingleInstance Force
Loop {
oldActive := WinExist("A")
WinWaitNotActive, A
while !(newActive := WinExist("A")) || (newActive = oldActive)
Sleep 0
WinGet, proc, ProcessName, A
ToolTip, % list := proc (list ? "`n" : "") list
}
Have found any drawback in my code or approach? Please, point it out. /The moderator ordered to remove the rest of the signature, I had obeyed.
And I really apologize for our russian president. Being a citizen of an aggressor country is very shameful. Personally I tried to avoid this trying to defend elections from fraud being a member of the election commission of one of the precincts but only was subjected to a hooligan attack and right before the vote count was illegally escorted from the polling station and spent the night behind bars (in jail) in a result of illegal actions of corrupt policemen.
And I really apologize for our russian president. Being a citizen of an aggressor country is very shameful. Personally I tried to avoid this trying to defend elections from fraud being a member of the election commission of one of the precincts but only was subjected to a hooligan attack and right before the vote count was illegally escorted from the polling station and spent the night behind bars (in jail) in a result of illegal actions of corrupt policemen.