PDA

View Full Version : disable alt f4 heheh


macko
08-06-2007, 08:20 AM
hi guys i can now disable alt f4 with this command put it on global event it is sure to work

function QueryAllowProjectClose()
if System.IsKeyDown(115) then
return false;
else
result= Dialog.Message("Application Exit", "Are you sure that you want to quit?", MB_YESNO, MB_ICONEXCLAMATION, MB_DEFBUTTON1);
--if they choose yes
if result == IDYES then
--allow the app to close
return true;
else
--cancel close
return false;
end
end
end

bule
08-06-2007, 10:57 AM
Thank you for sharing, but I think that this is already covered in the AutoPlay Media Studio Help 6.0.

macko
08-06-2007, 07:00 PM
i added some code in their built in command when closing the application. it only acts when sumone closes the app. some people wanted to disable the alt f4 by using diff .dll or by other commands. the system.iskeydown answers it. try to look at my second line of command

bule
08-07-2007, 12:10 AM
Yes, indeed. Nice one!