<div dir="ltr">These two scripts should do it.<div><b><u><br></u></b></div><div><b><u>SwitchToRUN.wts</u></b><br></div><div><div class="gmail_extra"><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">-- If we're in S&P mode, simulate Ctrl-Tab to toggle to RUN mode</font></div><div><font face="monospace, monospace">if wtQso:IsOperatingModeRun() == false then</font></div><div><font face="monospace, monospace"> wtApp:SendCtrlKey("Tab")</font></div><font face="monospace, monospace">end</font></div><div class="gmail_extra"><br></div><div class="gmail_extra"><div><u><b><br></b></u></div><div><u><b>SwitchToSandP.wts</b>:</u></div><div><u><font face="monospace, monospace"><br></font></u></div><div><font face="monospace, monospace">-- If we're in RUN mode, simulate Ctrl-Tab to toggle to S&P mode<br></font></div><div><font face="monospace, monospace">if wtQso:IsOperatingModeRun() then</font></div><div><font face="monospace, monospace"> wtApp:SendCtrlKey("Tab")</font></div><font face="monospace, monospace">end<br></font><div></div><div></div><div><div class="gmail_signature" data-smartmail="gmail_signature"><br></div><div class="gmail_signature" data-smartmail="gmail_signature"><br></div><div class="gmail_signature" data-smartmail="gmail_signature">Then program a CW/RTTY message:</div><div class="gmail_signature" data-smartmail="gmail_signature"><br></div><div class="gmail_signature" data-smartmail="gmail_signature">Add #SWITCHTORUN to the S&P F1 message.</div><div class="gmail_signature" data-smartmail="gmail_signature">Add #SWITCHTOSANDP to the S&P F4 message.</div><div class="gmail_signature" data-smartmail="gmail_signature"><br></div><div class="gmail_signature" data-smartmail="gmail_signature">For phone, you could add these script calls to the SO2R Advanced scenarios for F1 and F4. </div><div class="gmail_signature" data-smartmail="gmail_signature"><br></div><div class="gmail_signature" data-smartmail="gmail_signature">73,<div>Bob, N6TV</div></div></div>
<br><div class="gmail_quote">On Tue, Jul 12, 2016 at 9:12 AM, John Warburton G4IRN <span dir="ltr"><<a href="mailto:qrz@dxdx.co.uk" target="_blank">qrz@dxdx.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi<br>
<br>
<br>
I'm looking for ideas please!<br>
<br>
I'm struggling to identify a LUA API command that will switch the operating mode to S&P or to Run.<br>
<br>
The idea I have is to develop a script that will switch to Run mode when F1 is pressed or to S&P when (say) F4 is pressed; maybe also include it in my ESM script.<br>
<br>
Thanks<br>
<br>
John G4IRN<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Support mailing list<br>
<a href="mailto:support@win-test.com" target="_blank">support@win-test.com</a><br>
<a href="http://lists.f5mzn.org/cgi-bin/mailman/listinfo/support" rel="noreferrer" target="_blank">http://lists.f5mzn.org/cgi-bin/mailman/listinfo/support</a><br>
</blockquote></div><br></div></div></div>