Hi again, sorry foor taking longer than I had thought.
Turned out I had a typo in the setting of the isDownloadInProgress flag... x)
Anyway, it seems to function as intended now; give it a try

I've updated the original download link in the first post.
Here's another small demo, making use of two new functions I added and operating on the gnome file
sberk mentioned:
sync on
sync rate 0
disable escapekey
download file "http://cdimage.debian.org/cdimage/release/current-live/i386/usb-hdd/debian-live-6.0.1-i386-gnome-desktop.img", "C:\temp\test.img"
t0 = timer()
while is download in progress() and escapekey() = 0
cls
text 0, 0, "Download status: " + get download status description() + " (" + str$(get download status code()) + ")"
text 0, 20, space$(4) + chr$(34) + get download status text() + chr$(34)
text 0, 40, "Download size: " + str$(get download size()) + " bytes"
line 19, 99, 321, 99
line 19, 121, 321, 121
line 19, 99, 19, 121
line 321, 99, 321, 121
box 20, 100, 20 + (get download percentage() * 3), 120, 0xff500099, 0xff500099, 0xff500099, 0xff500099
center text 160, 105, str$(get download percentage(), 2) + "%"
text 25, 125, str$(get downloaded bytes() / 1024.0, 1) + " / " + str$(get download size() / 1024.0, 1) + "Kb (~" + str$(avgDownloadRate / 1024.0, 1) + "Kb/s)"
text 40, 145, "Press [Esc] to abort download"
if (timer() - t0) > 1000
avgDownloadRate = get downloaded bytes() - lastProgress
lastProgress = get downloaded bytes()
t0 = timer()
endif
sync
endwhile
// Was the download aborted?
if is download in progress()
abort download
text 0, 80, "Download aborted"
else
// Or was it finished?
text 0, 80, "Download finished"
endif
sync
wait key
end
Also, thanks for offering to help.
"Why do programmers get Halloween and Christmas mixed up?" Because Oct(31) = Dec(25)