templeos-info/public/Wb/Demo/AcctExample/HomeKeyPlugIns.HC.HTML

321 lines
33 KiB
Plaintext
Raw Normal View History

2024-03-24 21:24:44 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="generator" content="TempleOS V5.03">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="/style/templeos.css">
<script src="/script/templeos.js"></script>
<style type="text/css">
.cF0{color:#000000;background-color:#ffffff;}
.cF1{color:#0000aa;background-color:#ffffff;}
.cF2{color:#00aa00;background-color:#ffffff;}
.cF3{color:#00aaaa;background-color:#ffffff;}
.cF4{color:#aa0000;background-color:#ffffff;}
.cF5{color:#aa00aa;background-color:#ffffff;}
.cF6{color:#aa5500;background-color:#ffffff;}
.cF7{color:#aaaaaa;background-color:#ffffff;}
.cF8{color:#555555;background-color:#ffffff;}
.cF9{color:#5555ff;background-color:#ffffff;}
.cFA{color:#55ff55;background-color:#ffffff;}
.cFB{color:#55ffff;background-color:#ffffff;}
.cFC{color:#ff5555;background-color:#ffffff;}
.cFD{color:#ff55ff;background-color:#ffffff;}
.cFE{color:#ffff55;background-color:#ffffff;}
.cFF{color:#ffffff;background-color:#ffffff;}
</style>
</head>
<body>
<pre id="content">
<a name="l1"></a><span class=cF2>//Place this file in /Home and change</span><span class=cF0>
<a name="l2"></a></span><span class=cF2>//anything you want.</span><span class=cF0>
<a name="l3"></a>
<a name="l4"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>TimeIns</span><span class=cF0>()
<a name="l5"></a>{
<a name="l6"></a> </span><span class=cF9>CDate</span><span class=cF0> cdt;
<a name="l7"></a> cdt=</span><span class=cF5>Now</span><span class=cF0>;
<a name="l8"></a> </span><span class=cF6>&quot;$IV,1$----%D %T----$IV,0$\n&quot;</span><span class=cF0>,cdt,cdt;
<a name="l9"></a>}
<a name="l10"></a>
<a name="l11"></a></span><span class=cF1>U0</span><span class=cF0> FileLinkIns()
<a name="l12"></a>{
<a name="l13"></a> </span><span class=cF1>U8</span><span class=cF0> *st=</span><span class=cF5>PopUpPickFile</span><span class=cF0>;
<a name="l14"></a> st[0]=</span><span class=cF6>':'</span><span class=cF0>; </span><span class=cF2>//This is my personal code, not production. LOL</span><span class=cF0>
<a name="l15"></a> </span><span class=cF6>&quot;$LK,\&quot;%s\&quot;,A=\&quot;FI:%s\&quot;$&quot;</span><span class=cF0>,st+2,st;
<a name="l16"></a> </span><span class=cF5>Free</span><span class=cF0>(st);
<a name="l17"></a>}
<a name="l18"></a>
<a name="l19"></a></span><span class=cF1>U0</span><span class=cF0> DirLinksIns()
<a name="l20"></a>{
<a name="l21"></a> </span><span class=cF9>CDirEntry</span><span class=cF0> *tmpde,*tmpde1;
<a name="l22"></a> </span><span class=cF1>U8</span><span class=cF0> *st=</span><span class=cF5>PopUpPickDir</span><span class=cF0>,*st2;
<a name="l23"></a> st[0]=</span><span class=cF6>':'</span><span class=cF0>; </span><span class=cF2>//This is my personal code, not production. LOL</span><span class=cF0>
<a name="l24"></a> st2=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>&quot;%s/*&quot;</span><span class=cF0>,st);
<a name="l25"></a> tmpde=tmpde1=</span><span class=cF5>FilesFind</span><span class=cF0>(st2,</span><span class=cF3>FUF_JUST_FILES</span><span class=cF0>);
<a name="l26"></a> </span><span class=cF1>while</span><span class=cF0> (tmpde) </span><span class=cF7>{</span><span class=cF0>
<a name="l27"></a> tmpde-&gt;full_name[0]=</span><span class=cF6>':'</span><span class=cF0>;
<a name="l28"></a> </span><span class=cF6>&quot;$LK,\&quot;%s\&quot;,A=\&quot;FI:%s\&quot;$\n&quot;</span><span class=cF0>,tmpde-&gt;full_name+2,tmpde-&gt;full_name;
<a name="l29"></a> tmpde=tmpde-&gt;next;
<a name="l30"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l31"></a> </span><span class=cF5>DirTreeDel</span><span class=cF0>(tmpde1);
<a name="l32"></a> </span><span class=cF5>Free</span><span class=cF0>(st);
<a name="l33"></a> </span><span class=cF5>Free</span><span class=cF0>(st2);
<a name="l34"></a>}
<a name="l35"></a>
<a name="l36"></a></span><span class=cF1>U0</span><span class=cF0> DocHiddenDel(</span><span class=cF9>CDoc</span><span class=cF0> *doc=</span><span class=cF3>NULL</span><span class=cF0>)
<a name="l37"></a>{
<a name="l38"></a> </span><span class=cF1>Bool</span><span class=cF0> unlock;
<a name="l39"></a> </span><span class=cF9>CDocEntry</span><span class=cF0> *doc_e,*doc_e1;
<a name="l40"></a> </span><span class=cF1>if</span><span class=cF0> (!doc) doc=</span><span class=cF5>DocPut</span><span class=cF0>;
<a name="l41"></a> </span><span class=cF1>if</span><span class=cF0> (doc) </span><span class=cF7>{</span><span class=cF0>
<a name="l42"></a> unlock=</span><span class=cF5>DocLock</span><span class=cF0>(doc);
<a name="l43"></a> </span><span class=cF5>DocRecalc</span><span class=cF0>(doc);
<a name="l44"></a> doc_e=doc-&gt;head.next;
<a name="l45"></a> </span><span class=cF1>while</span><span class=cF0> (doc_e!=doc) {
<a name="l46"></a> doc_e1=doc_e-&gt;next;
<a name="l47"></a> </span><span class=cF1>if</span><span class=cF0> (doc_e-&gt;de_flags&amp;</span><span class=cF7>(</span><span class=cF3>DOCEF_FILTER_SKIP</span><span class=cF0>|</span><span class=cF3>DOCEF_SKIP</span><span class=cF7>)</span><span class=cF0>)
<a name="l48"></a> </span><span class=cF5>DocEntryDel</span><span class=cF0>(doc,doc_e);
<a name="l49"></a> doc_e=doc_e1;
<a name="l50"></a> }
<a name="l51"></a> </span><span class=cF5>DocRecalc</span><span class=cF0>(doc);
<a name="l52"></a> </span><span class=cF1>if</span><span class=cF0> (unlock)
<a name="l53"></a> </span><span class=cF5>DocUnlock</span><span class=cF0>(doc);
<a name="l54"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l55"></a>}
<a name="l56"></a>
<a name="l57"></a></span><span class=cF1>Bool</span><span class=cF0> </span><span class=cF5>MyPutKey</span><span class=cF0>(</span><span class=cF9>I64</span><span class=cF0> ch,</span><span class=cF9>I64</span><span class=cF0> sc)
<a name="l58"></a>{</span><span class=cF2>//ch=ASCII; sc=scan_code</span><span class=cF0>
<a name="l59"></a>
<a name="l60"></a> </span><span class=cF2>//See </span><span class=cF4><u>Char</u></span><span class=cF2> for definition of scan codes.</span><span class=cF0>
<a name="l61"></a> </span><span class=cF2>//See </span><a href="/Wb/Doc/KeyAlloc.DD.HTML#l1"><span class=cF4>Key Allocations</span></a><span class=cF2>.</span><span class=cF0>
<a name="l62"></a> </span><span class=cF2>//See </span><span class=cF4><u>Keyboard Devices</u></span><span class=cF2>.</span><span class=cF0>
<a name="l63"></a>
<a name="l64"></a> </span><span class=cF2>//You can customize keys. This routine</span><span class=cF0>
<a name="l65"></a> </span><span class=cF2>//is called before the main editor</span><span class=cF0>
<a name="l66"></a> </span><span class=cF2>//key hndlr </span><a href="/Wb/Adam/DolDoc/DocPutKey.HC.HTML#l3"><span class=cF4>DocPutKey</span></a><span class=cF2>().</span><span class=cF0>
<a name="l67"></a> </span><span class=cF2>//You can intercept any key.</span><span class=cF0>
<a name="l68"></a>
<a name="l69"></a> </span><span class=cF2>//Return TRUE if you completely</span><span class=cF0>
<a name="l70"></a> </span><span class=cF2>//handled the key.</span><span class=cF0>
<a name="l71"></a> </span><span class=cF9>I64</span><span class=cF0> i;
<a name="l72"></a> </span><span class=cF1>U8</span><span class=cF0> *st1,*st2;
<a name="l73"></a> </span><span class=cF1>if</span><span class=cF0> (sc&amp;</span><span class=cF3>SCF_ALT</span><span class=cF0> &amp;&amp; !</span><span class=cF7>(</span><span class=cF0>sc&amp;</span><span class=cF3>SCF_CTRL</span><span class=cF7>)</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
<a name="l74"></a> </span><span class=cF1>switch</span><span class=cF0> (ch) {
<a name="l75"></a> </span><span class=cF1>case</span><span class=cF0> 0:
<a name="l76"></a> </span><span class=cF1>switch</span><span class=cF0> (sc.u8[0]) </span><span class=cF7>{</span><span class=cF0>
<a name="l77"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>SC_F1</span><span class=cF0>:
<a name="l78"></a> </span><span class=cF1>if</span><span class=cF0> (sc&amp;</span><span class=cF3>SCF_SHIFT</span><span class=cF0>) {
<a name="l79"></a> </span><span class=cF1>if</span><span class=cF0> (sc&amp;</span><span class=cF3>SCF_KEY_DESC</span><span class=cF0>)
<a name="l80"></a> </span><span class=cF5>KeyDescSet</span><span class=cF0>(</span><span class=cF6>&quot;Dol /LTPURPLE&quot;</span><span class=cF0>);
<a name="l81"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l82"></a> </span><span class=cF6>&quot;$LTPURPLE$&quot;</span><span class=cF0>;
<a name="l83"></a> } </span><span class=cF1>else</span><span class=cF0> {
<a name="l84"></a> </span><span class=cF1>if</span><span class=cF0> (sc&amp;</span><span class=cF3>SCF_KEY_DESC</span><span class=cF0>)
<a name="l85"></a> </span><span class=cF5>KeyDescSet</span><span class=cF0>(</span><span class=cF6>&quot;Dol /PURPLE&quot;</span><span class=cF0>);
<a name="l86"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l87"></a> </span><span class=cF6>&quot;$PURPLE$&quot;</span><span class=cF0>;
<a name="l88"></a> }
<a name="l89"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l90"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>SC_F2</span><span class=cF0>:
<a name="l91"></a> </span><span class=cF1>if</span><span class=cF0> (sc&amp;</span><span class=cF3>SCF_SHIFT</span><span class=cF0>) {
<a name="l92"></a> </span><span class=cF1>if</span><span class=cF0> (sc&amp;</span><span class=cF3>SCF_KEY_DESC</span><span class=cF0>)
<a name="l93"></a> </span><span class=cF5>KeyDescSet</span><span class=cF0>(</span><span class=cF6>&quot;Dol /LTRED&quot;</span><span class=cF0>);
<a name="l94"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l95"></a> </span><span class=cF6>&quot;$LTRED$&quot;</span><span class=cF0>;
<a name="l96"></a> } </span><span class=cF1>else</span><span class=cF0> {
<a name="l97"></a> </span><span class=cF1>if</span><span class=cF0> (sc&amp;</span><span class=cF3>SCF_KEY_DESC</span><span class=cF0>)
<a name="l98"></a> </span><span class=cF5>KeyDescSet</span><span class=cF0>(</span><span class=cF6>&quot;Dol /RED&quot;</span><span class=cF0>);
<a name="l99"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l100"></a> </span><span class=cF6>&quot;$RED$&quot;</span><span class=cF0>;
<a name="l101"></a> }
<a name="l102"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l103"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>SC_F3</span><span class=cF0>:
<a name="l104"></a> </span><span class=cF1>if</span><span class=cF0> (sc&amp;</span><span class=cF3>SCF_SHIFT</span><span class=cF0>) {
<a name="l105"></a> </span><span class=cF1>if</span><span class=cF0> (sc&amp;</span><span class=cF3>SCF_KEY_DESC</span><span class=cF0>)
<a name="l106"></a> </span><span class=cF5>KeyDescSet</span><span class=cF0>(</span><span class=cF6>&quot;Dol /LTGREEN&quot;</span><span class=cF0>);
<a name="l107"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l108"></a> </span><span class=cF6>&quot;$LTGREEN$&quot;</span><span class=cF0>;
<a name="l109"></a> } </span><span class=cF1>else</span><span class=cF0> {
<a name="l110"></a> </span><span class=cF1>if</span><span class=cF0> (sc&amp;</span><span class=cF3>SCF_KEY_DESC</span><span class=cF0>)
<a name="l111"></a> </span><span class=cF5>KeyDescSet</span><span class=cF0>(</span><span class=cF6>&quot;Dol /GREEN&quot;</span><span class=cF0>);
<a name="l112"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l113"></a> </span><span class=cF6>&quot;$GREEN$&quot;</span><span class=cF0>;
<a name="l114"></a> }
<a name="l115"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l116"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>SC_F4</span><span class=cF0>:
<a name="l117"></a> </span><span class=cF1>if</span><span class=cF0> (sc&amp;</span><span class=cF3>SCF_SHIFT</span><span class=cF0>) {
<a name="l118"></a> </span><span class=cF1>if</span><span class=cF0> (sc&amp;</span><span class=cF3>SCF_KEY_DESC</span><span class=cF0>)
<a name="l119"></a> </span><span class=cF5>KeyDescSet</span><span class=cF0>(</span><span class=cF6>&quot;Dol /Default Color&quot;</span><span class=cF0>);
<a name="l120"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l121"></a> </span><span class=cF6>&quot;$FG$&quot;</span><span class=cF0>;
<a name="l122"></a> } </span><span class=cF1>else</span><span class=cF0> {
<a name="l123"></a> </span><span class=cF1>if</span><span class=cF0> (sc&amp;</span><span class=cF3>SCF_KEY_DESC</span><span class=cF0>)
<a name="l124"></a> </span><span class=cF5>KeyDescSet</span><span class=cF0>(</span><span class=cF6>&quot;Dol /BLUE&quot;</span><span class=cF0>);
<a name="l125"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l126"></a> </span><span class=cF6>&quot;$BLUE$&quot;</span><span class=cF0>;
<a name="l127"></a> }
<a name="l128"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l129"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>SC_F8</span><span class=cF0>:
<a name="l130"></a> </span><span class=cF1>if</span><span class=cF0> (sc&amp;</span><span class=cF3>SCF_SHIFT</span><span class=cF0>) {
<a name="l131"></a> </span><span class=cF1>if</span><span class=cF0> (sc&amp;</span><span class=cF3>SCF_KEY_DESC</span><span class=cF0>)
<a name="l132"></a> </span><span class=cF5>KeyDescSet</span><span class=cF0>(</span><span class=cF6>&quot;Cmd /DirLinksIns&quot;</span><span class=cF0>);
<a name="l133"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l134"></a> DirLinksIns;
<a name="l135"></a> } </span><span class=cF1>else</span><span class=cF0> {
<a name="l136"></a> </span><span class=cF1>if</span><span class=cF0> (sc&amp;</span><span class=cF3>SCF_KEY_DESC</span><span class=cF0>)
<a name="l137"></a> </span><span class=cF5>KeyDescSet</span><span class=cF0>(</span><span class=cF6>&quot;Cmd /FileLinkIns&quot;</span><span class=cF0>);
<a name="l138"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l139"></a> FileLinkIns;
<a name="l140"></a> }
<a name="l141"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l142"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l143"></a> </span><span class=cF1>break</span><span class=cF0>;
<a name="l144"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF6>'a'</span><span class=cF0>:
<a name="l145"></a> </span><span class=cF1>if</span><span class=cF0> (sc&amp;</span><span class=cF3>SCF_KEY_DESC</span><span class=cF0>)
<a name="l146"></a> </span><span class=cF5>KeyDescSet</span><span class=cF0>(</span><span class=cF6>&quot;Cmd /AutoComplete On&quot;</span><span class=cF0>);
<a name="l147"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l148"></a> </span><span class=cF5>AutoComplete</span><span class=cF0>(</span><span class=cF3>ON</span><span class=cF0>);
<a name="l149"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l150"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF6>'A'</span><span class=cF0>:
<a name="l151"></a> </span><span class=cF1>if</span><span class=cF0> (sc&amp;</span><span class=cF3>SCF_KEY_DESC</span><span class=cF0>)
<a name="l152"></a> </span><span class=cF5>KeyDescSet</span><span class=cF0>(</span><span class=cF6>&quot;Cmd /AutoComplete Off&quot;</span><span class=cF0>);
<a name="l153"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l154"></a> </span><span class=cF5>AutoComplete</span><span class=cF0>;
<a name="l155"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l156"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF6>'f'</span><span class=cF0>: </span><span class=cF2>//With sync</span><span class=cF0>
<a name="l157"></a> </span><span class=cF1>if</span><span class=cF0> (sc&amp;</span><span class=cF3>SCF_KEY_DESC</span><span class=cF0>)
<a name="l158"></a> </span><span class=cF5>KeyDescSet</span><span class=cF0>(</span><span class=cF6>&quot;Cmd /FrameGrabber Sync&quot;</span><span class=cF0>);
<a name="l159"></a> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF1>if</span><span class=cF0> (fg_on)
<a name="l160"></a> FrameGrabberToggle(</span><span class=cF3>FALSE</span><span class=cF0>,</span><span class=cF3>FALSE</span><span class=cF0>);
<a name="l161"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l162"></a> FrameGrabberToggle(</span><span class=cF3>TRUE</span><span class=cF0>,</span><span class=cF3>FALSE</span><span class=cF0>);
<a name="l163"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l164"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF6>'F'</span><span class=cF0>: </span><span class=cF2>//With sync and intro TOS theme</span><span class=cF0>
<a name="l165"></a> </span><span class=cF1>if</span><span class=cF0> (sc&amp;</span><span class=cF3>SCF_KEY_DESC</span><span class=cF0>)
<a name="l166"></a> </span><span class=cF5>KeyDescSet</span><span class=cF0>(</span><span class=cF6>&quot;Cmd /FrameGrabber Intro&quot;</span><span class=cF0>);
<a name="l167"></a> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF1>if</span><span class=cF0> (fg_on)
<a name="l168"></a> FrameGrabberToggle(</span><span class=cF3>FALSE</span><span class=cF0>,</span><span class=cF3>FALSE</span><span class=cF0>);
<a name="l169"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l170"></a> FrameGrabberToggle(</span><span class=cF3>TRUE</span><span class=cF0>,</span><span class=cF3>TRUE</span><span class=cF0>);
<a name="l171"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l172"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF6>'h'</span><span class=cF0>:
<a name="l173"></a> </span><span class=cF1>if</span><span class=cF0> (sc&amp;</span><span class=cF3>SCF_KEY_DESC</span><span class=cF0>)
<a name="l174"></a> </span><span class=cF5>KeyDescSet</span><span class=cF0>(</span><span class=cF6>&quot;Cmd /WinTileHorz&quot;</span><span class=cF0>);
<a name="l175"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l176"></a> </span><span class=cF5>WinTileHorz</span><span class=cF0>;
<a name="l177"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l178"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF6>'H'</span><span class=cF0>:
<a name="l179"></a> </span><span class=cF1>if</span><span class=cF0> (sc&amp;</span><span class=cF3>SCF_KEY_DESC</span><span class=cF0>)
<a name="l180"></a> </span><span class=cF5>KeyDescSet</span><span class=cF0>(</span><span class=cF6>&quot;Edit/Del Hidden Doc Entries&quot;</span><span class=cF0>);
<a name="l181"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l182"></a> DocHiddenDel;
<a name="l183"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l184"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF6>'m'</span><span class=cF0>:
<a name="l185"></a> </span><span class=cF1>if</span><span class=cF0> (sc&amp;</span><span class=cF3>SCF_KEY_DESC</span><span class=cF0>)
<a name="l186"></a> </span><span class=cF5>KeyDescSet</span><span class=cF0>(</span><span class=cF6>&quot;Cmd /WinMax&quot;</span><span class=cF0>);
<a name="l187"></a> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
<a name="l188"></a> </span><span class=cF5>WinBorder</span><span class=cF0>;
<a name="l189"></a> </span><span class=cF5>WinMax</span><span class=cF0>;
<a name="l190"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l191"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l192"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF6>'v'</span><span class=cF0>:
<a name="l193"></a> </span><span class=cF1>if</span><span class=cF0> (sc&amp;</span><span class=cF3>SCF_KEY_DESC</span><span class=cF0>)
<a name="l194"></a> </span><span class=cF5>KeyDescSet</span><span class=cF0>(</span><span class=cF6>&quot;Cmd /WinTileVert&quot;</span><span class=cF0>);
<a name="l195"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l196"></a> </span><span class=cF5>WinTileVert</span><span class=cF0>;
<a name="l197"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l198"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF6>'l'</span><span class=cF0>:
<a name="l199"></a> </span><span class=cF1>if</span><span class=cF0> (sc&amp;</span><span class=cF3>SCF_KEY_DESC</span><span class=cF0>)
<a name="l200"></a> </span><span class=cF5>KeyDescSet</span><span class=cF0>(</span><span class=cF6>&quot;Edit/Put Link to Cur Pos on Clip&quot;</span><span class=cF0>);
<a name="l201"></a> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
<a name="l202"></a> </span><span class=cF5>ClipDel</span><span class=cF0>;
<a name="l203"></a> st1=</span><span class=cF5>FileNameAbs</span><span class=cF0>(</span><span class=cF3>BIBLE_FILENAME</span><span class=cF0>);
<a name="l204"></a> st2=</span><span class=cF5>FileNameAbs</span><span class=cF0>(</span><span class=cF5>DocPut</span><span class=cF0>-&gt;filename.name);
<a name="l205"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF5>StrCmp</span><span class=cF7>(</span><span class=cF0>st1,st2</span><span class=cF7>)</span><span class=cF0>) {
<a name="l206"></a> </span><span class=cF5>Free</span><span class=cF0>(st1);
<a name="l207"></a> st1=</span><span class=cF5>BibleLine2Verse</span><span class=cF0>(</span><span class=cF5>DocPut</span><span class=cF0>-&gt;cur_entry-&gt;y+1,</span><span class=cF6>','</span><span class=cF0>);
<a name="l208"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(</span><span class=cFB>sys_clip_doc</span><span class=cF0>,</span><span class=cF6>&quot;$LK,\&quot;BF:%s\&quot;$&quot;</span><span class=cF0>,st1);
<a name="l209"></a> } </span><span class=cF1>else</span><span class=cF0>
<a name="l210"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(</span><span class=cFB>sys_clip_doc</span><span class=cF0>,</span><span class=cF6>&quot;$LK,\&quot;FL:%s,%d\&quot;$&quot;</span><span class=cF0>,
<a name="l211"></a> st2,</span><span class=cF5>DocPut</span><span class=cF0>-&gt;cur_entry-&gt;y+1);
<a name="l212"></a> </span><span class=cF5>Free</span><span class=cF0>(st1);
<a name="l213"></a> </span><span class=cF5>Free</span><span class=cF0>(st2);
<a name="l214"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l215"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l216"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF6>'L'</span><span class=cF0>:
<a name="l217"></a> </span><span class=cF1>if</span><span class=cF0> (sc&amp;</span><span class=cF3>SCF_KEY_DESC</span><span class=cF0>)
<a name="l218"></a> </span><span class=cF5>KeyDescSet</span><span class=cF0>(</span><span class=cF6>&quot;Edit/Place Anchor, Put Link to Clip&quot;</span><span class=cF0>);
<a name="l219"></a> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
<a name="l220"></a> i=</span><span class=cF5>RandU32</span><span class=cF0>;
<a name="l221"></a> </span><span class=cF5>ClipDel</span><span class=cF0>;
<a name="l222"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(</span><span class=cFB>sys_clip_doc</span><span class=cF0>,</span><span class=cF6>&quot;$LK,\&quot;&lt;TODO&gt;\&quot;,A=\&quot;FA:%s,ANC%d\&quot;$&quot;</span><span class=cF0>,
<a name="l223"></a> </span><span class=cF5>DocPut</span><span class=cF0>-&gt;filename.name,i);
<a name="l224"></a> </span><span class=cF6>&quot;$AN,\&quot;&lt;TODO&gt;\&quot;,A=\&quot;ANC%d\&quot;$&quot;</span><span class=cF0>,i;
<a name="l225"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l226"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l227"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF6>'p'</span><span class=cF0>:
<a name="l228"></a> </span><span class=cF1>if</span><span class=cF0> (sc&amp;</span><span class=cF3>SCF_KEY_DESC</span><span class=cF0>)
<a name="l229"></a> </span><span class=cF5>KeyDescSet</span><span class=cF0>(</span><span class=cF6>&quot;Cmd /JukeBox&quot;</span><span class=cF0>);
<a name="l230"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l231"></a> </span><span class=cF5>PopUp</span><span class=cF0>(</span><span class=cF6>&quot;#include \&quot;::/Apps/Psalmody/Load\&quot;;&quot;</span><span class=cF0>
<a name="l232"></a> </span><span class=cF6>&quot;JukeBox(\&quot;::/Home/Sup3/Sup3Hymns\&quot;);&quot;</span><span class=cF0>);
<a name="l233"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l234"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF6>'P'</span><span class=cF0>:
<a name="l235"></a> </span><span class=cF1>if</span><span class=cF0> (sc&amp;</span><span class=cF3>SCF_KEY_DESC</span><span class=cF0>)
<a name="l236"></a> </span><span class=cF5>KeyDescSet</span><span class=cF0>(</span><span class=cF6>&quot;Cmd /Psalmody&quot;</span><span class=cF0>);
<a name="l237"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l238"></a> </span><span class=cF5>PopUp</span><span class=cF0>(</span><span class=cF6>&quot;#include \&quot;::/Apps/Psalmody/Load\&quot;;&quot;</span><span class=cF0>
<a name="l239"></a> </span><span class=cF6>&quot;Psalmody(\&quot;~/Sup3/Sup3Hymns\&quot;);&quot;</span><span class=cF0>);
<a name="l240"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l241"></a>
<a name="l242"></a> </span><span class=cF2>//Ins your own ALT-key plug-ins</span><span class=cF0>
<a name="l243"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF6>'1'</span><span class=cF0>:
<a name="l244"></a> </span><span class=cF1>if</span><span class=cF0> (sc&amp;</span><span class=cF3>SCF_KEY_DESC</span><span class=cF0>)
<a name="l245"></a> </span><span class=cF5>KeyDescSet</span><span class=cF0>(</span><span class=cF6>&quot;Dol /pi&quot;</span><span class=cF0>);
<a name="l246"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l247"></a> </span><span class=cF6>'pi'</span><span class=cF0>;
<a name="l248"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l249"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF6>'2'</span><span class=cF0>:
<a name="l250"></a> </span><span class=cF1>if</span><span class=cF0> (sc&amp;</span><span class=cF3>SCF_KEY_DESC</span><span class=cF0>)
<a name="l251"></a> </span><span class=cF5>KeyDescSet</span><span class=cF0>(</span><span class=cF6>&quot;Dol /theta&quot;</span><span class=cF0>);
<a name="l252"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l253"></a> </span><span class=cF6>'theta'</span><span class=cF0>;
<a name="l254"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l255"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF6>'3'</span><span class=cF0>:
<a name="l256"></a> </span><span class=cF1>if</span><span class=cF0> (sc&amp;</span><span class=cF3>SCF_KEY_DESC</span><span class=cF0>)
<a name="l257"></a> </span><span class=cF5>KeyDescSet</span><span class=cF0>(</span><span class=cF6>&quot;Dol /phi&quot;</span><span class=cF0>);
<a name="l258"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l259"></a> </span><span class=cF6>'phi'</span><span class=cF0>;
<a name="l260"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l261"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF6>'4'</span><span class=cF0>:
<a name="l262"></a> </span><span class=cF1>if</span><span class=cF0> (sc&amp;</span><span class=cF3>SCF_KEY_DESC</span><span class=cF0>)
<a name="l263"></a> </span><span class=cF5>KeyDescSet</span><span class=cF0>(</span><span class=cF6>&quot;Dol /omega&quot;</span><span class=cF0>);
<a name="l264"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l265"></a> </span><span class=cF6>'omega'</span><span class=cF0>;
<a name="l266"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l267"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF6>'9'</span><span class=cF0>:
<a name="l268"></a> </span><span class=cF1>if</span><span class=cF0> (sc&amp;</span><span class=cF3>SCF_KEY_DESC</span><span class=cF0>)
<a name="l269"></a> </span><span class=cF5>KeyDescSet</span><span class=cF0>(</span><span class=cF6>&quot;Dol /Indent 5&quot;</span><span class=cF0>);
<a name="l270"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l271"></a> </span><span class=cF6>&quot;$ID,5$&quot;</span><span class=cF0>;
<a name="l272"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l273"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF6>'0'</span><span class=cF0>:
<a name="l274"></a> </span><span class=cF1>if</span><span class=cF0> (sc&amp;</span><span class=cF3>SCF_KEY_DESC</span><span class=cF0>)
<a name="l275"></a> </span><span class=cF5>KeyDescSet</span><span class=cF0>(</span><span class=cF6>&quot;Dol /Unindent 5&quot;</span><span class=cF0>);
<a name="l276"></a> </span><span class=cF1>else</span><span class=cF0>
<a name="l277"></a> </span><span class=cF6>&quot;$ID,-5$&quot;</span><span class=cF0>;
<a name="l278"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF3>TRUE</span><span class=cF0>;
<a name="l279"></a> }
<a name="l280"></a> </span><span class=cF7>}</span><span class=cF0>
<a name="l281"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF3>FALSE</span><span class=cF0>;
<a name="l282"></a>}
<a name="l283"></a>
<a name="l284"></a></span><span class=cF1>Bool</span><span class=cF0> </span><span class=cF5>MyPutS</span><span class=cF0>(</span><span class=cF1>U8</span><span class=cF0> *)
<a name="l285"></a>{
<a name="l286"></a> </span><span class=cF1>return</span><span class=cF0> </span><span class=cF3>FALSE</span><span class=cF0>;
<a name="l287"></a>}
<a name="l288"></a>
<a name="l289"></a></span><span class=cF5>KeyDevAdd</span><span class=cF0>(&amp;</span><span class=cF5>MyPutKey</span><span class=cF0>,&amp;</span><span class=cF5>MyPutS</span><span class=cF0>,0x20000000,</span><span class=cF3>TRUE</span><span class=cF0>);
</span></pre></body>
</html>