Spacebar TX works but does not release TX

408 views
Skip to first unread message

zl2...@gmail.com

unread,
Mar 28, 2025, 5:42:22 AM3/28/25
to Hermes-Lite
Using Thetis v2.10.3.7 (01/01/25) I'm able to press the spacebar to start the TX, but pressing the bar again has no effect.
However, if I click the mouse any where on the Thetis skin then press the bar again, it will release the TX.  If I was to press the bar again it will not activate the TX, unless I have clicked on the skin before pressing the space bar again.
I hope that makes sense.
The same effect is happening if I use the Home and End  keys.


Stan Vittetoe

unread,
Mar 28, 2025, 7:27:33 AM3/28/25
to zl2...@gmail.com, Hermes-Lite
Yes, that is the way it works for me, too. Apparently, Thetis needs to know that you are talking to it and not some other program running on your computer (e.g. logging software). I have started using my old hand key for cw plugged into the "PTT KEY" jack to start TX. It is much more convenient.

Stan

--
You received this message because you are subscribed to the Google Groups "Hermes-Lite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hermes-lite...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/hermes-lite/855ac5c7-8ee5-4b89-bd68-7876919219e4n%40googlegroups.com.

zl2...@gmail.com

unread,
Mar 28, 2025, 3:52:45 PM3/28/25
to Hermes-Lite
Thanks Stan,
I  understand why now, and it does make sense.  But I need to use the radio from various nodes on our network. Perhaps a wireless press switch connection to the HL2 PTT might be the answer. 
Thanks again
Keith

Ron Lewkowicz

unread,
Mar 29, 2025, 3:04:40 PM3/29/25
to Hermes-Lite
For keyboard hot keys to work Thetis or any program must be the focused window.  This quickly becomes quite a problem when you start using other applications along side Thetis such as logging software.  I use MIDI keys with PiHPSDR and this works stellar.  MIDI doesn't seem to work  with Thetis.  A lot of logging software has provisions to send Hamlib rigctl commands which should work with Thetis.  One might be able to leave the logging software in focus and create a macro or hot key in the logging software to send PTT.

GM8JCF

unread,
Mar 29, 2025, 3:25:59 PM3/29/25
to Hermes-Lite
Hi

AutoHotkey, https://www.autohotkey.com/ is your friend. Create a script to catch/intercept the PTT key from the keyboard, I use the Num Keypad PLUS key - AH will do this regardless of which window has focus - and then the AH script will always send the Thetis PTT key, usually SPACE, to the Thetis window. This way U can be doing other things on the PC, eg LogOM, qrz.com lookup  etc, and know that Thetis will always be sent the PTT key when the operator clicks on the user's PTT key. The AH script will work both for initiating TX, and for terminating TX, ie toggle. I also make the AH script bring the Thetis window to the foreground and focussed, but that's just my preference.

Hope this helps

73

Peter - GM8JCF

GM8JCF

unread,
Mar 29, 2025, 7:55:13 PM3/29/25
to Hermes-Lite
Here is an AutoHotKey script which sends a SPACE character (Thetis PTT) to Thetis when the user presses the + key on the number keypad. AutoHotKey will always catch the + key of the Number KeyPad regardless of which window is focussed. To change which key to use for PTT, change the line NumpadAdd:: to another key definition, eg NumpadEnter::, see https://www.autohotkey.com/docs/v1/KeyList.htm#numpad for list of key definitions

;Thetis PTT using Number Keypad + key
NumpadAdd::

;Send PTT to Thetis
ControlSend,, {space}, ahk_exe thetis.exe
return

73

Peter - GM8JCF

DL2AOM

unread,
Apr 1, 2025, 8:48:46 AM4/1/25
to Hermes-Lite
Thanks Peter for the tip. unfortunately the script does not work for me. it only opens the setup window of thetis although the switching with the space key is activated and works when the thetis application has the focus. i use AutoHotkey_1.1.37.02. a separate script to trigger the ptt in the sdr console using the F5 key or the + key of the keypad works perfectly. what could be my fault?

73 de Mat DL2AOM

GM8JCF

unread,
Apr 1, 2025, 2:01:35 PM4/1/25
to Hermes-Lite
Hi, what I have found is that U must NOT have any of the other Thetis windows open - this script is very simple, so it just sends the SPACE key to whichever  Thetis window is open rather than to the main Thetis window. So make sure the Setup/Memory/Linearity etc windows are NOT open and try the script again.  I have been too lazy to change the script to make sure it sends the SPACE code to the main Thetis window - it can be done, just that I've been lazy, and because it works so long as I don't have other Thetis windows open, it's been low on my "to do list" !!

73

Peter -  GM8JCF

GM8JCF

unread,
Apr 1, 2025, 2:53:43 PM4/1/25
to Hermes-Lite
Hi Mat DL2AOM

I've updated the PTT script so that if other Thetis windows are also open, it should correctly toggle PTT using SPACE

;Script triggered when Number Keypad + key is pressed
NumpadAdd::

;Match Window Title from first Character
SetTitleMatchMode, 1

;Send PTT to Thetis
;Send Space character to Window whose title starts with the text Thetis
ControlSend,, {space}, Thetis,,,
return

Give that a go.

73

Peter - GM8JCF

GM8JCF

unread,
Apr 1, 2025, 3:27:55 PM4/1/25
to Hermes-Lite
If using AutoHotKey V 2, then this is the AHK script to use
This AHK script has Error Handling
;Number Pad ADD Toggle Thetis PTT
NumpadAdd::{
   
    ToggleThetisPTT()
}

;Toggle Thetis PTT Function
ToggleThetisPTT(){

    ;msgbox "Toggle Thetis PTT"

    ;Bring Thetis to the foreground
    try{
        Winactivate("Thetis")
    }

    try{
        SetTitleMatchMode (1)
        ControlSend " ", ,"Thetis"
    }
}

DL2AOM

unread,
Apr 1, 2025, 3:44:19 PM4/1/25
to Hermes-Lite
Hello Peter,
thank you very much for your effort and for creating a new script. Unfortunately, the new script does not work for me either. I have now closed the still open window (Multi Meters) and when only the Thetis main window is open, the old script works perfectly.

73 de Mat DL2AOM

GM8JCF

unread,
Apr 1, 2025, 4:10:05 PM4/1/25
to Hermes-Lite
Good news, I don't use the Multi-Meters window, but I'll try and see why the script doesn't work when MM window is open

GM8JCF

unread,
Apr 1, 2025, 4:56:30 PM4/1/25
to Hermes-Lite
What does the Title bar of your Thetis say, see screengrab below of my Thetis Title Bar.

This is important because the script is configured find the window whose Title Bar starts with the word Thetis, and it is case sensitive.

Peter
MyThetisTitleBard.png

DL2AOM

unread,
Apr 1, 2025, 11:27:58 PM4/1/25
to Hermes-Lite

see attachment
title bar thetis.jpg

GM8JCF

unread,
Apr 2, 2025, 11:35:09 AM4/2/25
to Hermes-Lite
That looks correct, and I've started using multi-meter and the PTT still works correctly, wonder why it's not working for you, hmm I'll have to do some thinking, maybe add some diagnostic code to the script to help find the reason it's not finding the Thetis main-window..

Could U post your script so that I can see exactly what U are running, and how your script differs from mine ?

I'll take a look tonight

73

Peter - GM8JCF

GM8JCF

unread,
Apr 2, 2025, 3:42:29 PM4/2/25
to Hermes-Lite
Hi

Here is an improved AHK script to toggleThetis PTT

;Recommended for performance and compatibility with future AutoHotkey releases.
#NoEnv  

;Enable warnings to assist with detecting common errors.
#Warn

;This is a Single Instance Application
#SingleInstance force

;Recommended for new scripts due to its superior speed and reliability.
SendMode Input  

;Ensures a consistent starting directory.
SetWorkingDir %A_ScriptDir%  

;Match from start of text
SetTitleMatchMode, 1

;Thetis PTT triggered by Number Pad Enter key
NumpadEnter::


;Bring Thetis to the foreground
WinActivate , Thetis, MOX, ,

;Send the SPACE character to Thetis
;The Window title must start with the word Thetis and with a
;control with the text MOX
ControlSend,, {space}, Thetis,MOX,,

return

Please give this a try out in your environment, it works for me with several Thetis sub-windows open including multi-meters

73

Peter - GM8JCF

DL2AOM

unread,
Apr 3, 2025, 12:50:24 AM4/3/25
to Hermes-Lite
Good morning Peter,
good news, it works with the new script - which is not due to the script but I have set up a new container with different contents (ALC, SWR, Forward Power, Avg Signal Strength). Only if I have the Anan Multi Meter as content in a container, then it does not work. The cause must be the Anan Multi Meter ! Thanks for your efforts, maybe we could help some OM's! Note: I use AutoHotkey_1.1.37.02 with AutoHotkey_2.xxx the script does not work.
73 de Mat DL2AOM

DL2AOM

unread,
Apr 3, 2025, 1:45:33 AM4/3/25
to Hermes-Lite
update: after I deleted the old container and created a new container and added the Anan Multi Meter the script works perfectly with the Anan Multi Meter... small cause - big effect ;-)

GM8JCF

unread,
Apr 3, 2025, 1:58:44 PM4/3/25
to Hermes-Lite
Hi Mat

Great to hear that the Thetis PTT is now working correctly.

AutoHotKey V2 has a "somewhat" different syntax from AHK V1!!
Once I have a .AHK script working, then I "compile" the script to .EXE and in the "compile" process the correct version of the AutoHotKey interpreter is automatically selected by the "compiler". The main reason I use AHK V2 is that for more complex scripts/programs, AHK V2 has a better programming syntax, and features, eg Try Catch, Static Vars, cleaner Function definition for example. But for simple scripts like the Thetis PTT, AHK V1 is perfectly adequate, is simple, and doesn't benefit from the superior "programming" syntax/methods etc of AHK V2, in fact I would say that for 10~20 line scripts, using AHK V2 is overkill and more importantly adds needless, confusing, & obfuscating complexity for no gain.

If it helps others without AutoHotKey knowledge, I can make available the .EXE version of the Thetis PTT script so that people don't have to install AutoHotKey itself.  If people would like this functionality let me know, and I will put in some effort so that .EXE can be run with command line arguments enabling the user to select which key they want to use to trigger the Thetis PTT.

Once again, really glad to hear that your have Thetis PTT working correctly

73

Peter - GM8JCF

PS, I must try the ANAN multi-meter and see/find out why it interferes with the desired Thetis PTT functionality.

GM8JCF

unread,
Apr 3, 2025, 2:57:44 PM4/3/25
to Hermes-Lite
Hi Mat, sorry I hadn't read your last post re Anan Multi-meters, even better news that all works even better.

73

Peter - GM8JCF

Reply all
Reply to author
Forward
0 new messages