Quote from
Vadim on September 22, 2020, 5:31 pm
@pauljonestindall
If you know the file name in advance, you can use this monitoring code (of course, the program should work at this time):
.get the top window descriptor
zmGetForegroundWindow "[HWND]".
. get the window title from the descriptor
zmGetWindowTitle "[HWND]" "" "[TitleH]".
.remove quotes from the resulting window title (if any)
StrReplace "[TitleH]" "[#34]" "" "[TitleH]".
. further check - the received header text is allowed by us or not.
...
I controlled the student test windows so much - you could only open certain files in Excel and only a certain website in Browser, which was always on top.
Used plugin zmFunctions (Peter Pavlov)
@pauljonestindall
If you know the file name in advance, you can use this monitoring code (of course, the program should work at this time):
.get the top window descriptor
zmGetForegroundWindow "[HWND]".
. get the window title from the descriptor
zmGetWindowTitle "[HWND]" "" "[TitleH]".
.remove quotes from the resulting window title (if any)
StrReplace "[TitleH]" "[#34]" "" "[TitleH]".
. further check - the received header text is allowed by us or not.
...
I controlled the student test windows so much - you could only open certain files in Excel and only a certain website in Browser, which was always on top.
Used plugin zmFunctions (Peter Pavlov)