[WT-support] Script to change automatically the background Color in Run/SP

Bob Wilson, N6TV n6tv at arrl.net
Mon Jul 22 19:30:02 CEST 2013


Did you enable RUN/S&P mode (type RUNSP [Enter] in the logging window)?
 Did you assign it to the Ctrl-Tab key as described by GW3NJW?

What happens when you press Ctrl-Tab?  Make sure the Clock window is
visible (Windows | Clock) so that you can see what is happening

73,
Bob, N6TV

On Sun, Jul 21, 2013 at 6:55 AM, IZ4MJP Franco <franco at iz4mjp.com> wrote:

> With version 4.9x s it possible trough a Script  to automatically change
> the background color when I switch between S/P and Run?
>
> Some years ago someone posted a script for version 4.2.
> Some days ago i upgraded to v 4.9.
> Now i've tried to operate that script but it doesn't work (maybe i've had
> some mistakes producing the script).
>
> This is the code:
>
> <snip>
> if (wtApp:IsPostKeyProcess()) then
>    if (wtQso:IsOperatingModeRun()) then
>      wtApp:SetWindowColor(-1, 0, 165, 165);
>    else
>      wtApp:SetWindowColor(-1, 128,128,128);
>    end;
>  else
>    return 1; -- Triggers a post key process call
>  end;
> <snip>
>
> Could someone help me how to let it works on v. 4.9x?
>
> Thank you in advance.
>
> 73
> Franco, IZ4MJP
>
>
>
> Message: 6
> Date: Wed, 09 Sep 2009 23:17:19 +0000
> From: Clive Whelan <clive.whelan at btinternet.com>
> Subject: Re: [WT-support] RunSPSwitch.wts
> To: support at win-test.com, Ron Castro <ronc at sonic.net>
> Message-ID: <4AA8377F.609 at btinternet.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Ron
>
> Firstly ensure that you have an adequate supply of Valium and Prozac to
> hand ;-)
>
> Then download v 4.2.0-dev rev 168 from the nightly build directory,
> dated 2009/09/07 and install it .
>
> Then save this chunk of code ( from the release notes file) between the
> snips as RunSPSwitch.wts in the scripts directory ( use Notepad say or
> your favourite text editor) , which is at c:\Documents and Settings\All
> Users\Application Data\Win-test\Scripts
>
> <snip>
> if (wtApp:IsPostKeyProcess()) then
>    if (wtQso:IsOperatingModeRun()) then
>      wtApp:SetWindowColor(-1, 0, 165, 165);
>    else
>      wtApp:SetWindowColor(-1, 128,128,128);
>    end;
>  else
>    return 1; -- Triggers a post key process call
>  end;
>
> <snip>
>
> As an aside I personally don't like those colours so my own are
> respectively
>
> (-1, 255, 255, 0)
>
> and
>
> (-1, 200,200,255)
>
> being yellow for run and lilac for S&P. This is very personal of course,
> and the three last groups of digits represent R,G,B respectively. so
> that (-1,0,0,0) would be white I think. With a little experimentation
> you can brew your own palette.
>
> Now in WT go to Tools|Script Manager  and you should see the
> RunSPSwitch.wts script you have just saved listed there. You can then
> just assign this to Ctrl-Tab ( or another combo if you prefer). Then
> switching in the usual way should change the colour of the log window to
> what you have set. This is regardless of whether you are using ESM or
> otherwise.
>
> I think I've got this right from memory, but it's after midnight local
> time here now, so if not, that's where the Valium and Prozac in step one
> will come in handy! Don't worry if you don't get it right first time, as
> I almost never do, but then I'm challenged in the cybernetics department
> so you'll probably do better.
>
>
> 73
>
>
> Clive
> GW3NJW
>
>
> _______________________________________________
> Support mailing list
> support at win-test.com
> http://lists.f5mzn.org/cgi-bin/mailman/listinfo/support
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.f5mzn.org/pipermail/support/attachments/20130722/7572845a/attachment.html>


More information about the Support mailing list