[Dx4win] question

David Kozinn, K2DBK k2dbk at arrl.net
Wed Apr 5 17:56:23 EDT 2017


Hi Ian,

I can't speak for the author regarding why it works that way, and I 
agree that I'd prefer to have it come up with a empty QSO log field as 
well as automatically connecting to the packet.

I'm happy to share my Autohotkey script, but please understand that I'm 
not an AHK expert. I'll do my best to help as best I can, but I can't 
promise anything. Also, this is nothing like one of AD1C's nicely 
polished programs, but hopefully it'll work as a starting point for some 
of you. Autohotkey has some far more sophisticated functionality, but 
the script here is pretty close to just brute force.

First, you'll need a copy of Autohotkey which you can download from 
https://autohotkey.com/

There are tutorials there and that's where you can go for help. You'll 
want to put this script into the AHK startup file (instructions to edit 
that file are included in the help). I've got it set to invoke the AHK 
sequence when I type Windows+Z. (Why that? It wasn't used for anything 
else on my machine.)

Script starts below:

#z::
IfWinNotExist Packet Window
{
     Run C:\ham Program Files\dx4w805\dx4win.exe
     Sleep 4500
}

IfWinExist Packet Window
{
     WinActivate
     Send {Enter}{Enter}{Enter}{F7}{F9}{F9}
}

IfWinExist K2DBK sorted by Date
{
     WinActivate
     Send {F9}
}

; end of script

Here's what it does: First, if it finds that there's no window named 
"Packet Window" (the name of the Packet Window in D4W), it runs the D4W 
executable. You'll probably need to change the location of the 
executable. The Sleep 4500 tells it to wait a bit so that all the 
windows can finish opening. This is the number of milliseconds, so 
that's 4 1/2 seconds. You may need to tune that as well.

Next, if it finds that the Packet Window is open, it makes it active, 
sends 3 Enters, which causes the packet site selection window to open 
and selects the first cluster site in that window. (For recent versions, 
that will be the last one you used.) I have F7 in the packet window set 
to send my callsign. You can change this, or you could just have it send 
your callsign right from the script if you want. The next couple of F9's 
should cause it to go to the QSO entry window and blank the entry field, 
but I think I need to adjust the timing since it doesn't quite work right.

The next block of code is finds the main QSO entry window (that's the 
title it has for me, you'll need to change that), makes it the active 
window, and sends an F9 to clear it.

Again, this is purely a "good enough for me" kind of thing. I can try to 
provide some suggestions to folks, but depending on how you have D4W 
configured you may have to make some minor changes or possibly it won't 
work at all for you.


On 4/5/2017 5:29 PM, Ian Trusson wrote:
> David
>
> But why, when DX4WIN starts, doesn't it come up automatically with the QSO
> entry blank? Every time I start DX4WIN I have to hit F9 so the frequency of
> my radio is received into the QSO window from the radio via the CAT
> connection and the frequency is sent to my Expert 1K-FA amplifier to set the
> ATU for the correct frequency sub band. When I first switch on before
> hitting F9 I hear nothing from my receiver because the ATU is not tuned!
>
> However DX4WIN has always had this problem so I guess it will not get
> changed any time soon so any further detailed info you could provide about
> using AutoHotKey to overcome the F9 problem and automatically connect the
> packet window could be very useful to many of us.
>
> Regards
> Ian G3RVM
>
> -----Original Message-----
> From: DX4WIN [mailto:dx4win-bounces at mailman.qth.net] On Behalf Of David
> Kozinn, K2DBK
> Sent: 05 April 2017 22:05
> To: Courtney Judd; Dx4win at mailman.qth.net
> Subject: Re: [Dx4win] question
>
> (Sorry, I think the formatting on my 1st attempt to send this confused
> things. Hopefully this will work better.)
>
> I haven't seen it actually log the contact. It does pull up the last entry,
> but it's filled with all the info (time, date, frequency, etc) from the QSO
> so it's not in the "ready to log" state.
>
> For an overkill solution, you could use AutoHotKey and script it to blank
> out that field (a few F9's). I use it to set up my "operating environment",
> which includes connecting the packet window and a few other things.
>
>
> On 4/5/2017 3:22 PM, Courtney Judd wrote:
>> perhaps someone has an answer: when ever I open the dx4win program the
>> last log entry shows up in the log entry window. I have to hit F9 to
>> get rid of it and ready for a new entry. No big deal but if I forget
>> it logs the old contact again... would be much easier if it opened
>> with no entry.... any way to make this happen?  looked thru
>> preferences but don't see anything to fix this! thanks 73's Cort K4WI
>> ______________________________________________________________
>> DX4WIN mailing list
>> Home: http://mailman.qth.net/mailman/listinfo/dx4win
>> Help: http://mailman.qth.net/mmfaq.htm
>> Post: mailto:DX4WIN at mailman.qth.net
>>
>> This list hosted by: http://www.qsl.net Please help support this email
>> list: http://www.qsl.net/donate.html
>>
>
> --
> 73,
> 	David, K2DBK
> 	http://k2dbk.blogspot.com
> 	http://k2dbk.com
> 	twitter: @k2dbk
>
> ______________________________________________________________
> DX4WIN mailing list
> Home: http://mailman.qth.net/mailman/listinfo/dx4win
> Help: http://mailman.qth.net/mmfaq.htm
> Post: mailto:DX4WIN at mailman.qth.net
>
> This list hosted by: http://www.qsl.net
> Please help support this email list: http://www.qsl.net/donate.html
>
>

-- 
73,
	David, K2DBK
	http://k2dbk.blogspot.com
	http://k2dbk.com
	twitter: @k2dbk



More information about the DX4WIN mailing list