Recent

Author Topic: Win10 testuapp.exe mouse support  (Read 2318 times)

d-_-b

  • New Member
  • *
  • Posts: 45
Win10 testuapp.exe mouse support
« on: August 19, 2024, 07:23:01 pm »
Hi

im playing around with fv free vision test unicode app: testuapp.pas

i found the topic Topic: SOLVED Using mouse in FreeVission regarding changing the

properties > options > quick edit mode

to allow freevision to interact with the mouse.

I do wonder how win32 tui applications like mcwin32 can launch correctly without human intervention?

For now i created a shortcut(.lnk) with quick edit mode disabled,

Maybe someone can give insight into how mc don't need such work around?

Code: Pascal  [Select][+][-]
  1. mov     ax,0013h
  2. int     10h
Denthor thanks for the vga programming tutorials | Download all tutorials

TRon

  • Hero Member
  • *****
  • Posts: 3176
Re: Win10 testuapp.exe mouse support
« Reply #1 on: August 20, 2024, 01:21:39 pm »
I am making a wild guess here based on the code of mcwin and the readme: mcwin is in nature a Windows application ?
All software is open source (as long as you can read assembler)

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11732
  • FPC developer.
Re: Win10 testuapp.exe mouse support
« Reply #2 on: August 20, 2024, 01:36:23 pm »
The textmode IDE can too, probably you just need an extra windows specific call in startup.

Code: Delphi  [Select][+][-]
  1. uses windows;
  2. ....
  3. var IdeMode : dword;
  4. ...
  5.  
  6. // and then after the FV initvideo etc commands:
  7. IdeMode:=({IdeMode or }ENABLE_MOUSE_INPUT or
  8.                    ENABLE_WINDOW_INPUT or
  9.                    ENABLE_EXTENDED_FLAGS)
  10.            and not (ENABLE_PROCESSED_INPUT or
  11.                     ENABLE_LINE_INPUT or
  12.                     ENABLE_ECHO_INPUT or
  13.                     ENABLE_INSERT_MODE or
  14.                     ENABLE_QUICK_EDIT_MODE);
  15.   SetConsoleMode(GetStdHandle(cardinal(Std_Input_Handle)), IdeMode);
  16.  

d-_-b

  • New Member
  • *
  • Posts: 45
Re: Win10 testuapp.exe mouse support
« Reply #3 on: August 20, 2024, 10:02:29 pm »
@Tron it is a TUI/command.exe application, just ported to windows.

@Oliebol thanks SetConsoleMode is what i needed and i even found its usage in the mcwin32 c code.

Code: Pascal  [Select][+][-]
  1. mov     ax,0013h
  2. int     10h
Denthor thanks for the vga programming tutorials | Download all tutorials

 

TinyPortal © 2005-2018