Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-11-2003, 10:47 PM
Junior Member
 
Join Date: May 2003
Posts: 9
Default Checking out on "processMsg()"

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();

???
Reply With Quote
  #2 (permalink)  
Old 06-12-2003, 12:27 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: Checking out on "processMsg()"

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
Reply With Quote
  #3 (permalink)  
Old 06-12-2003, 02:17 AM
Junior Member
 
Join Date: May 2003
Posts: 9
Default Re: Checking out on "processMsg()"

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.

Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:47 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.