Try this:
import os, iup
#Super Spy
proc chrome(): string =
result = "test" # `result` is implicitly available and has the return
type
proc doc(): string =
result = "string"
block menu:
echo """
_________ _________
/ _____/__ ________ ___________ / _____/_____ ___.__.
\_____ \| | \____ \_/ __ \_ __ \ \_____ \\____ < | |
/ \ | / |_> > ___/| | \/ / \ |_> >___ |
/_______ /____/| __/ \___ >__| /_______ / __// ____|
\/ |__| \/ \/|__| \/
Welcome to Super Spy please slecet your option.
1. Chrome Grabber
2. Documents Grabber"""
case readLine(stdin)
of "1":2
echo chrome()
of "2":
echo doc()
else: echo "Please pick a real option."