[WT-support] Using the partner window as a scratchpad when you hear multiple callsigns in a pileup
Fabio I4UFH
i4ufh at libero.it
Wed Sep 29 09:03:28 CEST 2010
Hi Bob,
thank's for ur effort with this new LUA script !
I want ask u which are the advantages of using this script, instead of simply keep open the partner window and type calls in
the callsign field and pressing ALT RETURN to fill the partner window, without logging the callsign.
U solution it's one keystroke more longer that the "native" ALT RETURN partner stack filling process.
Let me know, i am loosing something
73 de Fabio I4UFH
Il giorno 29/set/2010, alle ore 05.27, Bob Wilson, N6TV ha scritto:
> Let's say you're a big gun DX station, and you can pick out three or four callsigns in a pileup, but you just can't remember them all.
>
> I've created a little Win-Test LUA script called "StackCalls" to attempt to solve the "scratchpad" problem.
>
> The script below lets you enter as many calls at once as you like and stacks them in the partner window. By default, calls are stacked in reverse order (last one at the top), then the last call enetered is loaded into the logging window, ready for you to call back. The rest of the callsigns heard remain "stacked" in the partner window, and may be grabbed via Alt-1, Alt-2, or double click. To simply remove a callsign from the Partner window, you can use Ctrl-Double click.
>
> You also have the option of stacking callsigns in the order entered (First in First Out), rather than in reverse order (Last in First Out).
>
> How to install:
> Save StackCalls.wts (below) in your Scripts directory (to see this directory, in Win-Test, do File | Explore | /scripts directory)
> Tools | Scripts Manager
> Highlight StackCalls and click the [Properties] button
> Click the [Define] button
> Press [F12] or [Ctrl-C] or whatever key you wish to use to activate StackCalls
> If you want callsigns to be stacked in the order entered, enter
> Argument: "FIFO" (with the quotes),
> otherwise enter no argument
> Press [OK]
> Press [OK] again
> How to use:
> Windows | Partner (once, to keep the Partner window visible; my attempt at automating this did not work)
> Press [F12] or whatever key you assigned to StackCalls
> In the pop-up window, type as many callsigns as you like and press Enter
> Note that all the callsigns are now loaded in the partner window, one per line, except for the last one entered, which should be in the logging window (unless there was already a callsign in the logging window)
> Use Alt-1 to pick off the next most recent call, or any other you wish
> Press Alt-1 multiple times to pop every callsign off the stack.
> I hope this helps.
>
> For more details of how to use the Partner Window, see this page in the Win-Test Wiki.
>
> 73,
> Bob, N6TV
>
> StackCalls.wts:
>
> -- Stack Calls - Stack multiple callsigns in partner window so that they can be
> -- grabbed one at a time with Alt-1, Alt-2, etc.
> --
> -- Assign to: F12, Ctrl-C, etc.
> --
> -- Argument = none for LIFO (last in, first out) - default
> -- "FIFO" (in quotes) for first in, last out
> -- Time-stamp: "29 September 2010 03:23 UTC"
> -- Written by N6TV
>
> local lifo = true -- Assume last in, first
>
> if wtArg ~= nil and string.upper(wtArg) == "FIFO" then
> lifo = false
> end
>
> -- Prompt for callsigns
> local callsigns = wtApp:InputText("Enter callsigns:", wtCurrentScript, "")
>
> local callsign = nil
> -- If user didn't simply press Escape or Cancel or enter nothing
> if callsigns ~= nil and callsigns ~= "" then
> -- Make Partner Window visible
> -- wtApp:ShowWindow(WT_WND_PARTNER)
>
> if lifo then
> -- We want last in, first out, so first we have to reverse the string of callsigns
> callsigns = string.reverse(callsigns)
> end
>
> -- If there's already a callsign in the logging window, save it in the stack
> if wtQso:IsCallsignEmpty() == false then
> -- Type Alt-Enter to save it the partner window
> wtApp:SendKeyCode(269, WT_KEY_ALT)
> end
>
> -- For each callsign entered in the box (alphnumeric characters (%w) and slashes)
> for callsign in string.gmatch(callsigns, "[%w/]+") do
> -- Clear the callsign field in the logging window
> wtApp:SendFKey("F11")
>
> if lifo then
> -- Unreverse the callsign
> callsign = string.reverse(callsign)
> end
>
> -- Type the callsign in the logging window
> wtApp:SendKey(callsign)
>
> -- Type Alt-Enter to load it into the partner window
> wtApp:SendKeyCode(269, WT_KEY_ALT)
> end
>
> -- Finally, type Alt-1 to pop the last callsign heard, or to restore call that was already
> -- in the logging window if nothing was entered in the pop-up window.
> wtApp:SendKey("1", WT_KEY_ALT)
> end
>
> -- No further keystroke processing
> return -1
>
> <StackCalls.wts>_______________________________________________
> Support mailing list
> Support at win-test.com
> http://www.f5mzn.org/cgi-bin/mailman/listinfo/support
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.f5mzn.org/pipermail/support/attachments/20100929/6208c1c1/attachment-0001.htm
More information about the Support
mailing list