Indigo Rose Software

Go Back   Indigo Rose Software Forums > TrueUpdate 3.5 > TrueUpdate 3.5 Discussion

Reply
 
Thread Tools Display Modes
  #1  
Old 06-30-2008
rohit.khambe rohit.khambe is offline
Indigo Rose Customer
 
Join Date: Jul 2007
Location: Singapore
Posts: 9
Showing downloaded file on top of other windows.

HI, I'm using TU to d/w a VB exe. Once the exe is d/w, I run the new exe so that it sits at the login prompt. My problem is that when TU calls the exe, it sits behind other windows. If I just double-click my app directly it is in front.

After d/w, Im calling the File.Run action with the SW_SHOWNORMAL parameter. Is there any way I can keep the called exe on top.

Thanks
Rohit
Reply With Quote
  #2  
Old 06-30-2008
Ulrich's Avatar
Ulrich Ulrich is offline
Indigo Rose Staff Member
 
Join Date: Apr 2005
Location: Sao Paulo, Brazil
Posts: 823
There are at least two possibilities.

The first one would be to modify your VB application to have it set the login window as the topmost window on startup. This is very easy, and how-tos can be found online.

The other way would be to instruct TrueUpdate to set your application as the topmost window. This can be done in the following way:
  • Start your updated VB application with File.Run (with the last parameter set to false (WaitForReturn) or else your script will stop at this point);
  • Once File.Run() started up your application, begin to monitor the windows with a loop, checking all top level windows of your desktop, with Window.EnumerateTitles() until your application becomes available on the desktop and you get a handle to your application's window;
  • After you got the handle to the window of your application, set it as the topmost window using Window.SetOrder();
  • Finally, once you have changed the z-order, you can break out of the loop and finish/continue the update process.

Ulrich
Reply With Quote
  #3  
Old 06-30-2008
rohit.khambe rohit.khambe is offline
Indigo Rose Customer
 
Join Date: Jul 2007
Location: Singapore
Posts: 9
Smile

Thanks Ulrich. The second solution works perfect.

First solution can be applied only if the window is already displayed. Here I'm talking about a login form which has to be shown modally. (ofcourse I could've used a timer etc). But the second solution is what I was looking for.

Cheers,
Rohit
Reply With Quote
Reply

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Failure when patching single file jlsf2 Visual Patch 3.5 Discussion 7 10-01-2007 01:15 PM
Installing a file dependent on the version of Windows OrlandoPat MSI Factory 2.0 Discussion 1 07-12-2007 04:44 PM
Mac autostart function??? Protocol AutoPlay Media Studio 4.0 21 06-26-2003 11:25 AM
Windows XP - self extracting cab file Derek AutoPlay Media Studio 4.0 1 10-24-2002 12:33 PM
Always on top ? And how to move windows ? jmoisan AutoPlay Media Studio 4.0 3 09-11-2002 12:28 PM


All times are GMT -6. The time now is 07:26 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software