Created
January 26, 2021 19:28
-
-
Save dnas2/a3fb7708ca3b22aa92a15ae3d0bc1378 to your computer and use it in GitHub Desktop.
DXLog.NET add-on script trigger a PTT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//INCLUDE_ASSEMBLY System.dll | |
//INCLUDE_ASSEMBLY System.Windows.Forms.dll | |
//INCLUDE_ASSEMBLY IOComm.dll | |
using System; | |
using System.Windows.Forms; | |
using IOComm; | |
namespace DXLog.net | |
{ | |
public class Script : ScriptClass | |
{ | |
public void Initialize(FrmMain main) { } | |
public void Deinitialize() { } | |
public void Main(FrmMain main, ContestData cdata, COMMain comMain) | |
{ | |
CATCommon radioObject; | |
radioObject = comMain._radio1Object; | |
FrmMain mainForm = main; | |
if (radioObject.TXStatus == true) | |
{ | |
mainForm.SetMainStatusText("PTT off"); | |
radioObject.SetTXStatus(false); | |
} | |
else | |
{ | |
mainForm.SetMainStatusText("PTT on"); | |
radioObject.SetTXStatus(true); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment