Both F6 and F10 cannot be handled in actionscript when a swf movie has been converted to EXE by using swfkit. F10 is reserved by system and actionscript cannot handle it. F6 will be converted to a command by swfkit, so that actionscript cannot handle it in a swfkit EXE.
To handle these keys in swfkit, please use the following ffish script code
Code:
FlashPlayer.window.onMessage = function (msg, wparam, lparam) {
if (msg == /*WM_CHAR*/0x0102) {
var ch = String.fromCharCode(wparam);
trace(ch);
} else if (msg == /*WM_KEYDOWN*/0x100) {
var key = wparam;
trace(key);
} else if (msg == /*WM_SYSKEYDOWN*/0x104) {
/*
* F10 is reserved by system. You can only get it by handling the WM_SYSKEYDOWN message
*/
var key = wparam;
trace(key);
if (key == 0x79/*F10*/) {
Dialogs.msgBox("F10");
}
} else if (msg == /*WM_COMMAND*/0x0111) {
/*
* The F6 key press will be converted to a WM_COAMMND message, and the wparam will be 123216
*/
if (wparam == 123216 && lparam == 0) {
Dialogs.msgBox("F6");
}
}
}