roodbwoy Posted November 28, 2006 Share Posted November 28, 2006 Hi! I recently discovered this wonderfull scripting program and I have to say that I am having a blast with it! Now I have this idea and searched the forums for some answers but couldn't find any direct answers to my problem. I have automated a lot of program installers and combined them in a single executable, this makes me the lazy sysadmin that I am juts run the script at a users PC and go for some coffee and a smoke Now I have this idea, the installers work great the only downside is that he users where I install it see the installation screens on their screen and I want to fix that. Is it possible to make a screen/gui that hides those installation windows and only show some text + maybe even a progress bar... and is it possible to disable user keyboard/mouse input while the script is running? thanks in advance The lazy sysadmin... btw here is the source for the automated VNC installer that I use expandcollapse popup#cs ---------------------------------------------------------------------------- AutoIt Version: 3.1.1.0 Author: Erik Jan van de Wal Script Function: VNC Automated Install Script. #ce ---------------------------------------------------------------------------- ; Script Start ; Run the VNC installer Run("vnc-4_1_2-x86_win32.exe") ; Welcome Screen WinWaitActive("Setup - VNC") Send("!n") ; License Agreement WinWaitActive("Setup - VNC") Send("!a") Send("!n") ; Install Location WinWaitActive("Setup - VNC") Send("!n") ; Components to install WinWaitActive("Setup - VNC") Send("!n") ; Folder Creation WinWaitActive("Setup - VNC") Send("!n") ; Icons Etcetera WinWaitActive("Setup - VNC") Send("!n") ; Start Install WinWaitActive("Setup - VNC") Send("!i") ; Configure WinWaitActive("VNC Server Properties (Service-Mode)") Send("{Tab}") Send("{ENTER}") Send("password") Send("{Tab}") Send("password") Send("{ENTER}") Send("{Tab}") Send("{Tab}") Send("{ENTER}") ; Summary WinActivate("Setup - VNC") Send("!n") ; Finish WinWaitActive("Setup - VNC") Send("!f") Exit SELECT * FROM users WHERE clue > 1; no rows returned Link to comment Share on other sites More sharing options...
BigDod Posted November 28, 2006 Share Posted November 28, 2006 You could use SplashTextOn but the down side to that is that your send commands will not work properly. You should look into using ControlSend and ControlClick which can work on a window that does not have focus. To disable the keyboard and mouse you can use BlockInput. Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
roodbwoy Posted November 28, 2006 Author Share Posted November 28, 2006 You could use SplashTextOn but the down side to that is that your send commands will not work properly. You should look into using ControlSend and ControlClick which can work on a window that does not have focus. To disable the keyboard and mouse you can use BlockInput.Thanks alot BigDod, I'll look into it! SELECT * FROM users WHERE clue > 1; no rows returned Link to comment Share on other sites More sharing options...
Zedna Posted November 28, 2006 Share Posted November 28, 2006 (edited) When you will make changes promoted by BigDod you can make your simple GUI over all desktop with some background color/picture or label to hide instalation windows: #include <GUIConstants.au3> GUICreate("", @DesktopWidth, @DesktopHeight, 0, 0, $WS_POPUP) GUISetBkColor(0xc8ffc8) ;GUICtrlCreatePic("some picture.jpg", ...) GUICtrlCreateLabel("Instal in progress ...", 0, @DesktopHeight/2, @DesktopWidth, 100, BitOr($GUI_SS_DEFAULT_LABEL, $SS_CENTER)) GUICtrlSetFont (-1,18,900) GUICtrlSetColor(-1,0xff) GUISetState(@SW_SHOW) ; --> your instal routine here ... ; ... EDIT: added label Edited November 28, 2006 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now