Skip to content
Dziezyk, Peter edited this page Jun 9, 2024 · 18 revisions

Database file: C:\dna\db.txt

Troubleshooting

To reset db.txt and se.txt, delete dna folder in c:/ drive (X + ESC to make sure program is closed first) then open dnaspider.exe and press 1.

If db.txt is saved with Encoding other than ANSI and the code from the first line failed to run, skip the first line in db.txt and start the code on the second.
===db.txt=======
Disregard first line
h:ello
<e->Enjoy
<x:><bs><e->
==============
Press CTRL + S to save db.txt before running.

db.txt Examples:

h:ello
Press H in a text area for output (Mode 1)

<e->Enjoy
Press RIGHT_CTRL, release, then press E (Mode 2)

<x:><bs><e->!
Press RIGHT_CTRL, release, then press X (Connect)

🐱‍👤 Note

Each line in c:\dna\db.txt is for its own custom shortcut (input)
h: <e-> <x:>

Followed by its functionality (output)
ello Enjoy <bs><e->!

Keep in mind the setting CtrlScanOnlyMode: 0 has two modes for running shortcuts.

Mode one:
In this mode, all you have to do is press H in a text area for output.
Strand must be cleared first for this to work (BACKSPACE or double press RIGHT_CTRL).

db.txt Mode one options:
h:ello
h-ello
h>ello

Mode two:
<e->Enjoy
In this mode shortcuts must start with a <.
To initialize mode two you must press RIGHT_SHIFT + LEFT_SHIFT, COMMA + ESCAPE, or RIGHT_CTRL first.
dnaspider.exe
strand: <

Enable just mode two:
In se.txt, set this mode to true.
se.txt
CtrlScanOnlyMode: 1

db.txt Mode two options:
<h:ello
<h-ello
<h>ello

db.txt Mode two connect options:
<h:>ello
<h->ello
<x-><h:><h->

Mode three:
se.txt
StrandLengthMode: 3
CloseCtrlMode: 0
CtrlScanOnlyMode: 0

The shortcut is the first three keys.

db.txt Mode three options:
hello
hel:lo
hel-lo
hel>lo

Press h e l for output lo.
Can also use mode one options if CloseCtrlMode: 1

Mode four:
se.txt
CloseCtrlMode: 1
db.txt
h>ello

Press H RIGHT_CTRL or H COMMA + ESC to run.
dnaspider.exe
strand: h >

Note:
After changing a setting in se.txt, press RIGHT_CTRL S E or <se for settings to take effect without restarting program or press LCTRL + S if editing se.txt in Notepad or Code. Title must read se.txt - Notepad or Se.txt - Visual Studio Code for LCTRL + S.
dnaspider.exe
strand: <se

Repeat
Press RCTRL + LCTRL, SCROLL_LOCK, or EQUAL + ESC to repeat the last code that ran.
Repeat key will remember the strand if you use > between input and output or are in StrandLengthMode: 1.
db.txt
h>ello
hello

Cheat sheet:
i:o One button shortcut | strand: i
ii:o Two button shortcut | strand: ii
i-o One button shortcut with auto backspace i
i>o One button shortcut variant | SCROLL_LOCK Remember i
i:>o The > is ignored. Same as i:o
i->o The > is ignored. Same as i-o
Connect:
<i:>o Can also be called with RIGHT_CTRL I or COMMA + ESC I | strand: <i
<i->o Connect variant | strand: <i
i:o<i:> Output will be oo | strand: i

Clone this wiki locally