Originally Posted by Sylv3r
I've just converted 300 of these damn taskmagic drag and drop files to VLE compatible hot potatoes drag and drop files.
The problem we have is that our languages dept are heavy VLE users, and they put their drag and drop taskmagic files on the VLE. problem is that kids at home cannot open them, some don't have permission to install taskmagic, some don't want to, some have macs etc.
Hotpotatoes is much better, it produces files that the VLE automatically accepts (moodle) so we can get the VLE to automatically mark the work. without any unnecessary installer. the hotpot gui is intuitive enough to.
If you have the choice of using hotpot over taskmagic then do so. if not then use this script to convert drag and drop to hotpot format:
p = optparse.OptionParser()
p.add_option('--filename', '-f', default="filename.MDL")
options, arguments = p.parse_args()
file = open(options.filename, 'r')
data = file.readlines() #read lines in file and put
questions= data # number of questions, the first line of the file
questions = int(questions)
questions = 0
i = 1
print " "+ options.filename + ""
awnser = data[questions+i+1]
Match the items on the right to the items on the left.
Correct! Well done.
Sorry! Try again. Incorrect matches have been removed.
Your score is
Your time is over!
Please enter your name:
if __name__ == '__main__':
you can call it like this:
find . -name "*.mdl" | while read FILE
~/path_to/mdl_script.py -f $FILE > ../path_to_output/$FILE.jmt
did i mention hotpot is a free download: