When you use a web browser on a device that is running Windows Embedded Compact 7, a left mouse button click may not have any effect inside the browser window. This problem occurs when you open a webpage with a web browser and click a hyperlink on the page. Instead of going to the associated webpage, the browser does not respond. In this situation, the only way to go to a website is to click the address bar, manually enter a URL, and press Enter.

This problem has not been observed on Virtual CEPC.

In this article:


Cause

By default, the Windows Embedded Compact 7 browser is set up for touch devices.


Resolution

To address this issue, apply one of the following resolutions:


Set the BSP_NOTOUCH environment variable in the OS Image

You can set an environment variable for your OS image by using the Platform Builder integrated development environment (IDE), the command line, or a batch file. The following procedure describes how to accomplish this task by using a batch file. In this case, you edit the batch file for your BSP, which is located at %_WINCEROOT%\platform\<BSP>\<BSP>.bat, where <BSP> is the name of your BSP. For example, the batch file for the eBox BSP that is included with Windows Embedded Compact 7 is %_WINCEROOT%\platform\ebox3300\ebox3300.bat.

To set the BSP_NOTOUCH environment variable by using a batch file

  1. In Windows Explorer, open the batch file for your BSP with a text editor.
  2. In the batch file, on a new line, type BSP_NOTOUCH=1.
  3. Save and close the batch file.
  4. Rebuild the OS.

Map mouse events to touch gestures by using the registry

To map mouse events to touch gestures, you need to set the registry key [HKEY_LOCAL_MACHINE\SYSTEM\GWE\UserInput] to PromoteMouseInputToTouchInput=dword:1. You can either follow the instructions below or watch this video to learn how to edit the registry in Windows Embedded Compact 7.

To map mouse events to touch gestures by using the registry

  1. In Visual Studio, open your OS design.
  2. In Solution Explorer, expand the OS design project node, and then expand the Parameter Files directory.
  3. Under Parameter Files, double-click OSDesign.reg.
  4. In the OSDesign.reg pane, right-click HKEY_LOCAL_MACHINE, click New, and then click Key.
  5. Type GWE and press Enter.
  6. Right-click GWE, click New, and then click Key.
  7. Type UserInput and press Enter.
  8. Right-click UserInput, click New, and then click DWORD Value.
  9. Type PromoteMouseInputToTouchInput and press Enter.
  10. In the Properties pane for the PromoteMouseInputToTouchInput registry value, for Data, type 1.
    Save and then build the OS design project.

Community Resources


See Also