Simply Simple

Edit and save hello.txt
[crayon-6a617b0fe4f9b188842668/] 
Ducky Scripts are compiled into hex files ready to be named inject.bin and moved to the root of a microSD card for execution by the USB Rubber Ducky. This is done with the tool duckencoder.

duckencoder is a cross-platform command-line Java program which converts the Ducky Script syntax into hex files. Usage is:

As of duckencoder 1.X usage is:

Encode specified file:
[crayon-6a617b0fe4fa2210618517/] 
Encode to specified file:
[crayon-6a617b0fe4fa4925299041/] 
For example:
[crayon-6a617b0fe4fa5273762488/] 
Compiling hello.txt
[crayon-6a617b0fe4fa6837891317/] 
Save file inject.bin in USB Rubber Ducky