0

I am using Windows 10, while key events work okay. The problem is with mouse events clicking in the console sort of just automatically assumes I am trying to select and thus goes into select mode. I am not sure if there is something in the API to turn this off.

Update: Anyone who wants to solve this here is a link to the solution SOLUTION

genpfault
  • 51,148
  • 11
  • 85
  • 139
  • Just configure the console the way you want it. Click the system menu (or press Alt+Space) > Properties > Options tab > untick "QuickEdit Mode". Or use the Get/SetConsoleMode() winapi function to turn off ENABLE_QUICK_EDIT_MODE, but do consider leaving that choice to the user of your program. – Hans Passant May 31 '17 at 17:04
  • Disabling ~ENABLE_QUICK_EDIT_MODE was not working adding ENABLE_EXTENDED_FLAGS worked though, thanks – faridah6931 May 31 '17 at 17:18
  • https://stackoverflow.com/questions/46567248/how-to-disable-user-selection-in-windows-console This worked for me. – Craig Hawkins Sep 21 '20 at 14:01

1 Answers1

0

Mouse selection mode was one of the console improvement features introduced in Windows 10. It can be turned on/off from console parameters. Note that if you want to disable it for your application you can configure console parameters for shortcut.

user7860670
  • 35,849
  • 4
  • 58
  • 84