Page MenuHomeFeedback Tracker

If focus switched while loading, Arma3.exe can catch Windows mouse clicks and keystrokes while not having focus
New, WishlistPublic

Description

OBS:
If Arma is started in windowed mode, and focus is switched to another program while Arma is loading, Arma3.exe enters a "half focused" state, where it is not in focus as far as Windows is concerned (Arma is not displayed on screen), but it plays sounds and catch HID actions as if it were in focus. This results in mouse clicks and key presses in other programs affecting both that other program and Arma.
For example, pressing spacebar while typing in Notepad can result in Arma opening the News Dev Log link, or clicking a link in web browser resulting in starting missions through the menu.
When in this state, the user could inadvertently perform undesired actions in Arma, such as reverting a campaign or deleting the user profile.

EXP:
Arma should only catch key presses and mouse clicks if it is in focus, and do nothing if it is not in focus.

Details

Legacy ID
1216835286
Severity
None
Resolution
Open
Reproducibility
Always
Category
Engine
Steps To Reproduce
  1. Open any fullscreen windows program, eg web browser. Have it on screen.
  2. Start the Arma3 launcher. Have it in focus, and the other program behind.
  3. Set options to start Arma in windowed mode, without nopause startup parameter from the Arma3 Launcher. Click "Play" to start loading Arma 3.
  4. Wait until the bottom line of text in the Launcher states: "BattlEye: Updating BattlEye service" or "BattlEye: Launching the game" (this happens quite quickly).
  5. Switch focus to other Windows program, either by Alt+Tab or clicking on it. If focus is not switched before the floating Arma3 logo and loading info appears on the centre of the screen, the repro has failed and needs to be restarted.
  6. Wait. Arma3 sounds will be heard once it has loaded, even though the web browser is in focus.
  7. Press keys, eg tab, then up/down arrows, or spacebar. Note Arma3 sounds playing.
Additional Information

Event Timeline

ceeeb edited Steps To Reproduce. (Show Details)Jan 10 2016, 10:32 PM
ceeeb edited Additional Information. (Show Details)
ceeeb set Category to Engine.
ceeeb set Reproducibility to Always.
ceeeb set Severity to None.
ceeeb set Resolution to Open.
ceeeb set Legacy ID to 1216835286.May 8 2016, 1:28 PM
Bohemia added a subscriber: ceeeb.Jan 10 2016, 10:32 PM
ceeeb added a comment.Jun 22 2016, 2:23 PM

Previous ticket for the same issue in Arma2
https://dev.withsix.com/issues/11591