Code archives/User Input/Blitz Close

This code has been declared by its author to be Public Domain code.

Download source code

Blitz Close by Marcelo
(Posted 23 years ago)
- Download the file here: http://raintree.hpg.com.br/blitzclose.dat
- Rename it to .zip (my host doesn't allow .zip files)
- Decompress and check readme.txt inside.

.
; Example code (need the DLL above)
AppTitle "test123"

; First parameter is the scancode to fake, the second is the window name
InstallCloseHandler(57, "test123")

While (Not KeyHit(1))
	; This if will be TRUE when the user tries to close the window, usually don't use a common key
	If KeyHit(57)  
		DebugLog("yeah")
	EndIf
Wend

UnInstallCloseHandler()

Comments

Peter Scheutz
(Posted 22 years ago)
Cool. It works well. Thanks!

jfk EO-11110
(Posted 22 years ago)
Seems like his websace was removed.

Alternatively get it from here: http://www.melog.ch/dl/blitzclose.zip

markcw
(Posted 21 years ago)
Or here:
http://www.geocities.com/blitzmirror/

markcw
(Posted 21 years ago)
.

Grey Alien
(Posted 21 years ago)
I use the original, works great thanks.

Picklesworth
(Posted 21 years ago)
Does anybody have the source code for, or source code that does the same thing as, BlitzClose.dll?
I have emailed Marcello, but with no response.
I wish to get this working in WinBlitz3d.

markcw
(Posted 21 years ago)
Mr Pickle, the source code is there in the zip as c++ code (see blitzclose.cpp for the two functions).

Code Archives Forum