Taskbar/notifications issue
Posted: Sun Nov 18, 2018 2:59 am
My cross-platform Mac/Win app displays a series of geometric figures (white on a black background). To each item the test subject must respond by pressing a number key 1 through 4. (All other keys are ignored.) In order to emulate the original 1940s version of the test and avoid distraction, in the preOpenCard handler I employ hide menubar (Mac), hide taskbar (Win), set backdrop to "black", set the cursor to "none", and lock cursor, in that order.
Seems to work fine on my macOS 10.6.8 desktop and borrowed Windows Vista laptop. However, a colleague stress-testing my app in Windows 10 reports that occasionally and unpredictably either the taskbar or a notification appears, which prevents any keyboard input until it is dismissed and/or the user clicks on the application window (which may or may not even be possible, inasmuch as the cursor is locked to "none").
This is a problem because (sadly) clinicians often leave a test client unattended at the computer once the test is started. Consequently, the test client may be at a loss to know what to do if/when the taskbar or a notification appears and keyboard input is not recognized.
I fear that nothing can be done from within LiveCode to suppress this from happening. One possibility is that the problem occurs only when the computer is connected to the internet -- in which case the clinician simply must be instructed to disable internet access when running the test. Less attractive is that I must inform users to change their OS preference settings, which they may find confusing or unacceptable.
Moreover, it's possible that this may even be an issue with recent versions of macOS as well (inasmuch as these include a new Notifications preference panel).
Any suggestions or insights are much appreciated.
jeff k
Seems to work fine on my macOS 10.6.8 desktop and borrowed Windows Vista laptop. However, a colleague stress-testing my app in Windows 10 reports that occasionally and unpredictably either the taskbar or a notification appears, which prevents any keyboard input until it is dismissed and/or the user clicks on the application window (which may or may not even be possible, inasmuch as the cursor is locked to "none").
This is a problem because (sadly) clinicians often leave a test client unattended at the computer once the test is started. Consequently, the test client may be at a loss to know what to do if/when the taskbar or a notification appears and keyboard input is not recognized.
I fear that nothing can be done from within LiveCode to suppress this from happening. One possibility is that the problem occurs only when the computer is connected to the internet -- in which case the clinician simply must be instructed to disable internet access when running the test. Less attractive is that I must inform users to change their OS preference settings, which they may find confusing or unacceptable.
Moreover, it's possible that this may even be an issue with recent versions of macOS as well (inasmuch as these include a new Notifications preference panel).
Any suggestions or insights are much appreciated.
jeff k