Groups | Blog | Home
all groups > flash actionscript > april 2004 >

flash actionscript : How to block the function of ALT + F4?


nokonet
4/12/2004 9:41:27 PM
EgyptianBrain
4/12/2004 11:24:44 PM
I have the problem , but in my opinion it is realted to the windows not the
ActionScript , so i am imaging that someone will make a patch that access the
registry and disable this function and we may include this patch with our swf.
sneakyimp
4/12/2004 11:29:06 PM
actually, you might be able to intercept the key combination with javascript...i suspect that the browser will respond to they keys before flash gets a chance to.
ShadowKnyte
4/13/2004 5:12:42 AM
ALT-F4 is reserved by windows for the action of terminating a window and is the
users only method in some cases to terminate 'ROGUE' applications that try to
seize control of a users PC.

I can only presume you are wanting to stop ALT-F4 for some malicious activity
where you want to prevent the user from returning to their desktop so.... YOU
WILL FIND NO HELP HERE!
nITiNkIlLeRmEeRuT
4/13/2004 6:54:55 AM
Not possible in Flash using actionscript. Use can use Visual Basic to disable
this using API's. I will try to make a solution and post it. Or if you have
some knowledge of VB and API try to search for [b]Disabling Alt + F4 through
VB[/b] in google search. You will get the solution.
nokonet
4/13/2004 8:15:50 AM
The project I?m doing is an exe and is intended to run in a computer located in
a public place (a bank). As it is a common computer, and the client has to
interact with it, it is better the user doesn?t have the opportunity to close
the window and work with the computer.
I know very few of VB so if anyone can help me, I will really appreciate it.
Thank you for your answers.
Nok
Peter Blumenthal
4/13/2004 10:05:36 AM
Take a look at fscommand("trapallkeys", "true");

http://www.macromedia.com/support/flash/ts/documents/fscommand_projectors.htm#trapallkeys


HTH
}`¬P

--
---------------------------------------
http://www.phageinteractive.com
PhageInteractive Ltd.
remove mm_ to mail
---------------------------------------
'If I come across as a grumpy and twisted old man, it's just because I'm a
grumpy, twisted, old man." - me
---------------------------------------

..

tralfaz
4/13/2004 11:06:09 AM
[quoted text, click to view]

I used to make video bingo software for gambling halls. Similar situation..
we didn't want people to exit into Windows. Solution was to make the shell
for Windows to be the bingo game. That is, instead of the regular Windows
interface, it starts up in the application instead. If someone were to exit
the application, it just starts right back up again. That was a long time
ago with Windows 3.11 so you would need to do a little research to find out
the correct way to limit Windows like that. Should be simple enough though.
As I recall, for that old Windows version it was just a line in system.ini.
It originally said "shell = explorer.exe" and we changed it to "shell =
bingo.exe" I hope I am remembering that right. There was also some lines
in config.sys that blocked F5 and F8 debug key startup.
tralfaz

AddThis Social Bookmark Button