Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-13-2003, 12:57 AM
Member
 
Join Date: Sep 2003
Posts: 95
Default onQueryClose / onClose

me again

;D

Having dramas trying to get an app to restart the computer at the end of another (external) apps installation process.

Currently I have an application that will install drivers etc on the users PC, but (for various reasons) will not restart the computer.

What I want is another app that will poll and check to see if the external app has closed, and thus initiate a reboot.

The thing is, the external app uses InstallShield Wizard, which fires off an ungodly amount of windows.... so I can't just poll one specific window.

Currently I am doing:

// look for all active InstallShield Wizard windows
ws = Window.getWindowsByName("InstallShield Wizard");

for (i = 0; i < ws.length; i++) {

// check to see if the window is being closed
// if so pop up a dialog box informing the user that their PC will restart

ws[i].onClose = function () {

// for testing I want to use a Yes / No dialog box
// so that I don't restart my computer accidently....
// the actual code will only use an OK dialog box

var r = Dialogs.msgBox("Your PC will now restart", null, 36);
trace("YOUR PC SHOULD NOW RESTART");
if (r == 6) {
SysInfo.reboot();
}
return false;
}
}

But the dialog box doesn't fire off....

Any ideas?

Cheers,

G.
Reply With Quote
  #2 (permalink)  
Old 10-13-2003, 02:43 AM
Member
 
Join Date: Sep 2003
Posts: 95
Default Re:onQueryClose / onClose

lol, I think I've figured it out....

I've found the handle of the LAST box, and am using that as a check.

If that handle is found fire off a dialog box, otherwise wait....

Sorry for wasting your time again,

G.
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 05:15 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.