Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

TSE: XButton1 and XButton2 are not ported to e32.exe

40 views
Skip to first unread message

knud van eeden

unread,
Jan 30, 2025, 5:31:18 PMJan 30
to SemWare TSE Pro Text Editor
Hello,

TSE 4.50.2

Create e.g. the following program:

<XButton1> Warn( 1 )
<XButton2> Warn( 2 )

save it as foobar.s, compile and run it.

Result:

In g32.exe it works as expected.

In e32.exe it does nothing

Inline image

with friendly greetings
Knud van Eeden

knud van eeden

unread,
Jan 30, 2025, 5:36:03 PMJan 30
to SemWare TSE Pro Text Editor
The same issue for 


<XButton1> Warn( 1 )
<XButton2> Warn( 2 )
<WheelLeft> Warn( 3 )
<WheelRight> Warn( 4 )


Guy Rouillier

unread,
Jan 30, 2025, 7:22:47 PMJan 30
to SemWare TSE Pro Text Editor
I can reproduce your results.  I did some Googling, and I think the issue is that the Windows console does not recognize mouse buttons 4 and 5.  Sorry, Knud, I can't spend more than an hour investigating this.  Good luck.  Start by searching "windows console mouse button 4".

--
Guy Rouillier
--

---
You received this message because you are subscribed to the Google Groups "SemWare TSE Pro text editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to semware+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/semware/486447171.6603562.1738276555908%40mail.yahoo.com.

knud van eeden

unread,
Jan 30, 2025, 7:27:42 PMJan 30
to Semware TSE Pro
Not sure, maybe the C source code I provided for XButton1, XButton2, WheelLeft, WheelRight would work when ported for a console also,
so it would be a matter of adding and compiling it in.

Otherwise, see. maybe e.g. also

Otherwise let us see...

with friendly greetings
Knud van Eeden

knud van eeden

unread,
Jan 31, 2025, 2:32:08 PMJan 31
to Semware TSE Pro
Final verdict:

1. XButton1
2. XButton2
3. WheelLeft
4. WheelRight

can not be detected in e32.exe
(compiled with Borland BCC command line compiler 5.5 or 10.2, as is used for TSE).

(Note: gcc on Windows and Microsoft Visual Studio 2022 detect WheelLeft and WheelRight but not XButton1 and not XButton2).

with friendly greetings
Knud van Eeden

knud van eeden

unread,
Jan 31, 2025, 2:34:40 PMJan 31
to Semware TSE Pro
Workaround:

Use 

 g32.exe 

instead of 

 e32.exe 

(where all 4 below mouse options are successfully detected, I use especially XButton1 and XButton2 in g32.exe every day very many times).

knud van eeden

unread,
Jan 31, 2025, 4:01:14 PMJan 31
to Semware TSE Pro, S.E. Mitchell
1. XButton1
2. XButton2
3. WheelLeft
4. WheelRight

could maybe be added to e32.exe after all.

The following attached .cpp program:

1. compiles and runs successfully in Borland BCC command line compiler version 10.2

2. Detects XButton1, XButton2, WheelLeft (=Scroll left) and WheelRight (=Scroll right).

3. Uses ReadConsoleInput() as required in TSE e32.exe.

4. Solution path:

copy/pasted the program there.

b. It compiled successfully in Microsoft Visual Studio 2022

c. Then compiled also successfully in Borland BCC command line compiler version 10.2

d. Then asked DeepSeek V3 to add ReadConsoleInput() also into it.

e. Finally asked DeepSeek V3 also to put WheelLeft and WheelRight into it.


Inline image

mouse_events_works_bcc102_03.cpp

knud van eeden

unread,
Jan 31, 2025, 5:14:14 PMJan 31
to Semware TSE Pro
That might **maybe** be resolved now for e32.exe
+ also required to compile in Borland C++ command line compiler version 5.5
+ ReadConsoleInput()
+ in console

The final .cpp program which detects all mouse actions as required:

See attachment: mouse_events_works_bcc102_05.cpp


Inline image


mouse_events_works_bcc102_05.cpp

Eckhard Hillmann

unread,
Feb 1, 2025, 7:38:25 AMFeb 1
to sem...@googlegroups.com
FYI

After generating a profile for e32.exe WheelUp / WheelDown works on my machines
when using this software.
Maybe you want try to remap XButton1 / XButton2 to a key TSE understands, a change
in your UI-file might be required to get these to work when remapped.
Off course this is only a change in the the environment, not at the root.

https://www.highrez.co.uk/downloads/XMouseButtonControl.htm

--
Best regards
Eckhard mailto:or...@ewetel.net


Ihre Nachricht vom Freitag, 31. Januar 2025 23:14:

kvevSTPte> That might **maybe** be resolved now for e32.exe+ also required to compile in Borland C++ command line compiler version 5.5+ ReadConsoleInput()+ in console
kvevSTPte> The final .cpp program which detects all mouse actions as required:
kvevSTPte> See attachment: mouse_events_works_bcc102_05.cpp




kvevSTPte> with friendly greetingsKnud van Eeden

knud van eeden

unread,
Feb 1, 2025, 8:46:48 AMFeb 1
to sem...@googlegroups.com
When compiling this attached file mouse_events_works_bcc102_05.cpp
with bcc 5.5 command line compiler
all mouse functions work,
including XButton1, XButton2, WheelLeft, WheelRight as seen in the inline screenshot (see 'scroll left' and 'scroll right' in it) so that should be resolved and answered.

The (only?) question remaining is if that source code can be used and or incorporated into the e32.exe source code. That is where the 'maybe' comes from.

with friendly greetings 
Knud van Eeden 

Sent from Yahoo Mail on Samsung Galaxy S24 Ultra / 1 terabyte / artificial intelligence

--

---
You received this message because you are subscribed to the Google Groups "SemWare TSE Pro text editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to semware+u...@googlegroups.com.

Eckhard Hillmann

unread,
Feb 1, 2025, 9:26:13 AMFeb 1
to sem...@googlegroups.com
Of course, you are absolutely right!
If possible the code should be integrated into e32.exe.

--
Best regards
Eckhard

Ihre Nachricht vom Samstag, 1. Februar 2025 14:46:

kvevSTPte> When compiling this attached file mouse_events_works_bcc102_05.cppwith bcc 5.5 command line compiler
kvevSTPte> all mouse functions work,including XButton1, XButton2, WheelLeft, WheelRight as seen in the inline screenshot (see 'scroll left' and 'scroll right' in it) so that should be resolved and answered.
kvevSTPte> The (only?) question remaining is if that source code can be used and or incorporated into the e32.exe source code. That is where the 'maybe' comes from.

kvevSTPte> with friendly greetings Knud van Eeden 
kvevSTPte> Sent from Yahoo Mail on Samsung Galaxy S24 Ultra / 1 terabyte / artificial intelligence
kvevSTPte>
kvevSTPte> On Sat, Feb 1, 2025 at 14:11, Eckhard Hillmann<or...@ewetel.net> wrote: FYI

kvevSTPte> After generating a profile for e32.exe WheelUp / WheelDown works on my machines
kvevSTPte> when using this software.
kvevSTPte> Maybe you want try to remap XButton1 / XButton2 to a key TSE understands, a change
kvevSTPte> in your UI-file might be required to get these to work when remapped.
kvevSTPte> Off course this is only a change in the the environment, not at the root.

kvevSTPte>   https://www.highrez.co.uk/downloads/XMouseButtonControl.htm

kvevSTPte> --
kvevSTPte> Best regards
kvevSTPte> Eckhard                                    mailto:or...@ewetel.net


kvevSTPte> Ihre Nachricht vom Freitag, 31. Januar 2025 23:14:

kvevSTPte>>  That might **maybe** be resolved now for e32.exe+ also required to compile in Borland C++ command line compiler version 5.5+ ReadConsoleInput()+ in console
kvevSTPte>> The final .cpp program which detects all mouse actions as required:
kvevSTPte>> See attachment: mouse_events_works_bcc102_05.cpp




kvevSTPte>> with friendly greetingsKnud van Eeden   

kvevSTPte> --

kvevSTPte> ---
kvevSTPte> You received this message because you are subscribed to the Google Groups "SemWare TSE Pro text editor" group.
kvevSTPte> To unsubscribe from this group and stop receiving emails from it, send an email to semware+u...@googlegroups.com.
kvevSTPte> To view this discussion visit https://groups.google.com/d/msgid/semware/1355772717.20250201133820%40ewetel.net.
kvevSTPte>

Guy Rouillier

unread,
Feb 1, 2025, 10:25:59 PMFeb 1
to Semware TSE Pro
Thanks, Knud.  I was also able to compile this with the mingw-w64 compiler, which is still actively maintained, with no code changes.  Verified that all mouse buttons are recognized.  Great work!

--
Guy Rouillier

knud van eeden

unread,
Feb 3, 2025, 6:42:27 PMFeb 3
to Semware TSE Pro
FYIO:

Compiles here from within TSE out of the box with:

===

1. Borland BCC 5.5: Yes

2. Embarcadero BCC 10.2: Yes:

3. Microsoft Visual Studio 2022: Yes

4. GNU MingW gcc 64 bits: Yes

5. GNU Cygwin gcc 32 bits: Yes

with friendly greetings
Knud van Eeden

knud van eeden

unread,
Feb 3, 2025, 6:46:01 PMFeb 3
to Semware TSE Pro
That has to be tested further, sent too early. 

On Tuesday, February 4, 2025 at 12:42:20 AM GMT+1, knud van eeden <knud_va...@yahoo.com> wrote:


FYIO:

Compiles here from within TSE out of the box with:

===

1. Borland BCC 5.5: ?

2. Embarcadero BCC 10.2: ?

3. Microsoft Visual Studio 2022: ?

4. GNU MingW gcc 64 bits: ?

5. GNU Cygwin gcc 32 bits: ?

knud van eeden

unread,
Feb 3, 2025, 6:58:23 PMFeb 3
to Semware TSE Pro
On Tuesday, February 4, 2025 at 12:42:20 AM GMT+1, knud van eeden <knud_va...@yahoo.com> wrote:
FYIO:

Compiles here from within TSE out of the box with:

===

1. Borland BCC 5.5: Yes

2. Embarcadero BCC 10.2: Yes

3. Microsoft Visual Studio 2022: No

4. GNU MingW gcc 64 bits version 14.2.0: No

5. GNU Cygwin gcc 32 bits version 12.4.0: No

Guy Rouillier

unread,
Feb 4, 2025, 1:30:18 AMFeb 4
to Semware TSE Pro
"The (only?) question remaining is if that source code can be used and or incorporated into the e32.exe source code. That is where the 'maybe' comes from."

Rather than requiring TSE to be updated to add extended capability, a better approach would be to add an extension capability into TSE.  Other editors I've used over the last 35 years have such a thing.  Then, we could add things to TSE without having to wait for Semware to release a new version.  This would also help keep the core TSE code focused just on the editor fundamentals.

--
Guy Rouillier

knud van eeden

unread,
Feb 4, 2025, 4:54:11 AMFeb 4
to Semware TSE Pro
> Rather than requiring TSE to be updated to add extended capability, a better approach would be to add an extension capability into TSE.  Other editors I've used over the last 35 years have such a thing.  Then, we could 
> add things to TSE without having to wait for Semware to release a new version.  This would also help keep the core TSE code focused just on the editor fundamentals.

* So how do you see that implemented?

E.g. NotePad++ uses typically DLLs 

* And in TSE for Windows one can add DLLs already.

* Similar for external .exe, they can be run via Dos() and StartPgm().

* In general TSE is already very much extendable (.s, .si, ...).

* Further has source code for 
XButton1, XButton2, WheelLeft, WheelRight
absolutely to be added straight into the source code of e.g. e32.exe.
Assumed is that any other plugin here is no solution for that.

with friendly greetings
Knud van Eeden

Guy Rouillier

unread,
Feb 5, 2025, 3:08:17 AMFeb 5
to Semware TSE Pro
In Linux, the gedit family of editors - gedit, pluma, xed - has a plugin capability.  Take a look at any of them, since they all evolved from the gedit codebase, they all work similarly.  In Preferences, there is a Plugins tab in which you can add on functionality.  I have not myself written any plugins, but that is what I had in mind.

You are correct that TSE already has macros, and can also invoke functions in DLLs.  Maybe that will be enough.  However, in this current case of adding support for additional mouse buttons, neither macros or DLLs seem to provide the necessary functionality.  Since native code is required, it appears only a DLL would even be a possibility, but I don't know if it will work.  If it won't, than rather than asking Sammy to add the additional mouse button support directly into TSE, instead implementing a general-purpose plugin capability would open up possibilities for future enhancements.

--
Guy Rouillier
--

---
You received this message because you are subscribed to the Google Groups "SemWare TSE Pro text editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to semware+u...@googlegroups.com.

knud van eeden

unread,
Feb 5, 2025, 5:48:29 AMFeb 5
to Semware TSE Pro
Well for me it is not an issue at all as such at the end of the day.

I do not use e32.exe at all. Zero.

Plugins and its concept would be a new future development.

with friendly greetings
Knud van Eeden

knud van eeden

unread,
Feb 5, 2025, 5:51:19 AMFeb 5
to Semware TSE Pro
So if they at the end of the day do something with it or not is not my concern at all.


Reply all
Reply to author
Forward
0 new messages