Skip to content

Learning EFN

Takax62 edited this page Sep 21, 2025 · 2 revisions

Wanna learn EFN? You came to the right page!

Add from EFN import * to every code!

efnframe can be replaced with None. Also, gui is an example variable, but you can replace it. These are only examples, there are so much more functions!

Basics

Printing:

write("Hi!")

Variable assignment:

let(varname, vardata)

Input:

inputconsole(varname, text, inputtype) # replace inputtype with "float", "int" or "standard".

GUI creation:

gui = creategui(title, geometry, bg, icon, fullscreen=False)

Label:

label = textingui(gui, efnframe, labelid, text, color, bgcolor, fontsize, fonttype, side)

Button (flat):

button = buttonflat(gui, efnframe, text, color, bgcolor, fontsize, fonttype, command, side)

Button (3D-like):

button = buttonthreed(gui, efnframe, text, color, bgcolor, fontsize, fonttype, command, side)

Entry:

waitforguianswer(gui, efnframe, name, side)

Read from an entry:

readfromentry(gui, entryvarname)

Time waiting (NOT GUI):

wait(seconds)

Comment (first: multi-line, second: one-line):

c("comment
that
supports
multiple
lines!")
o("One-line comment.")

GUI running:

rungui(gui)

Kernels

Kernel creation:

kernelMain(code here)

Scheduling:

schedule(code here)

Panic handling:

panic(code here)

Printing:

printk(code here)

Saving functions:

saveAll(functions)

C features

Windows DLL Loading:

loadwindll(name)

Python DLL Loading:

loadpydll(name)

ASM features -- Writing a bootloader

Showing text:

showtext("Example text")

Infinite loop:

infiniteloop()

Jump to an address:

jumpto(address)

DANGER ZONE!

RAISING A HARD ERROR ON WINDOWS:

ONLY TEST IT IN A SECURE ENVIRONMENT OR A VM, IT CAN CAUSE DATA LOSS!

raiseharderror(errorcode=0xC000021A, numberofparameters=0, unicodestringmask=0, parameters=None, validresponseoption=6)

I hope these examples can help understand EFN.

Clone this wiki locally