Sign in to follow this  
Followers 0
Stevester

Keeping Info Box in front

3 posts in this topic

Hi folks, long time lurker...first time poster. I'm working on a script to uninstall the Novell Client from Workstations. Users being what they are I have need to put up an info box for the duration of the uninstall telling them not to cancel the process..and essentially hide it from them. I have the dialog box created and the uninstall script works fine but the uninstall screens still pop in front of my dialog box that COULD give the users the chance to cancel it if they wanted to. Is there any way to keep my dialog box in front and have it take up most of the screen while the background script is running?

Here is my script:

#include <GUIConstants.au3>

GUICreate("Client Uninstall", 400, 200)

GUICtrlCreateLabel("UNINSTALLING NOVELL CLIENT", 110, 50)

GUICtrlCreateLabel("DO NOT CANCEL", 150, 100)

GUICtrlCreateLabel("YOUR PC WILL REBOOT WHEN FINISHED", 90, 150)

GUISetState(@SW_SHOW)

Sleep(30000)

Run("RUNDLL32.EXE NWSETUP.DLL NWUninstallClient")

If WinWait("RUNDLL", "loading NWSETUP", 3) Then

Exit

EndIf

If WinWait("Uninstall Novell Client for Windows", "uninstall the Novell Client", 60) Then

ControlClick("Uninstall Novell Client for Windows", "uninstall the Novell Client", "Button1")

WinActivate("Client Uninstall", "UNINSTALLING NOVELL CLIENT")

WinWait("Uninstall Novell Client for Windows", "shut down and restart your computer")

ControlClick("Uninstall Novell Client for Windows", "shut down and restart your computer", "Button1")

EndIf

Thanks in Advance!

Stevester

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Try adding to GUICreate("Client Uninstall", 400, 200)

so that it looks like :-

GUICreate("Client Uninstall", 400, 200, -1,-1, -1, $WS_EX_TOPMOST)

Found in help file under GUICreate - exStyle (the link)

Edit: Welcome to the Autoit Forums

Edited by Malkey

Share this post


Link to post
Share on other sites

Worked like a charm, thanks mate :)

Try adding to GUICreate("Client Uninstall", 400, 200)

so that it looks like :-

GUICreate("Client Uninstall", 400, 200, -1,-1, -1, $WS_EX_TOPMOST)

Found in help file under GUICreate - exStyle (the link)

Edit: Welcome to the Autoit Forums

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0