|
|||
|
Hi,
I found SWFKit very useful and easy to use but the help explaination is not too detail. I have hide my taskbar. Then i use the command "processMsg()" to close the projector by pressing "ALT+F4" keysbreak. Before it close the projector, it will show up my taskbar again. But i discovered that by pressing "Ctrl+ALT+Delete", it will only close my projector but it won't process my code to show the taskbar before it is close. Is it that "processMsg()" cannot be use on the keybreak "Ctrl+ALT+Delete". If can, may i know how. Thanks. The code is like this: //Hides the taskbar var tb = Window.find("Shell_TrayWnd"); if (tb != null) tb.hide(); while (1){ if (!processMsg())break; } //show the taskbar var tb = Window.find("Shell_TrayWnd"); if (tb != null) tb.show(); ??? |
|
|||
|
Hi, "Ctrl+ALT+Delete" will kill your projector. The projector has no chance to run the statements to show the taskbar again.
You can show up the taskbar in the onClose event handler of the main window without using "processMsg()". wnd = getMainWnd(); wnd.onClose = function () { var tb = Window.find("Shell_TrayWnd"); if (tb != null) tb.show(); } When you close the projector, by clicking the close button or ALT+F4, the onClose function will be executed. But it won't work if you kill it with "ALT+CTRL+DEL", it has no chance to trigger the event |
|
|||
|
Hi,
From your reply i understand that if user use "ALT+CTRL+DEL", it will has no chance to trigger the event to show my application again. So there is no way to quit the application without restarting the machine if it hang. That is a problem to me because my client depend on that to quit the program when the machine hang without restarting the machine. So can you advice me on how to set forcus to my User Interface without showing Winamp3 to the user only when they quit from it. Example winamp3 is an application which will call up my User Interface and it is running in the background. I want to avoid user from switching to it from the taskbar. Like the command shell.runandwait. I can always set forcus to the application it has called. But now i need to set forcus to the intended window without editing the application which has invoked it. Thanks. |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|