Jasondamian Posted December 21, 2005 Share Posted December 21, 2005 Ok, this is my first post so bare with me please. I wrote a script to install a program with no user interface but I do not want the screens to show up while the installation is going on. there are multiple screens and some have the same name. here is the code Please be gentle I am not a programer Thanks!: #NoTrayIcon BlockInput(1) Opt("WinWaitDelay",100) Opt("WinTitleMatchMode",4) Opt("WinDetectHiddenText",1) Opt("MouseCoordMode",0) Run('C:\Avvenu_for_Palm_1.1.exe') WinWait("Avvenu 1.1.8 Setup","") If Not WinActive("Avvenu 1.1.8 Setup","") Then WinActivate("Avvenu 1.1.8 Setup","") WinWaitActive("Avvenu 1.1.8 Setup","") Send("{ENTER}") WinWait("Avvenu 1.1.8 Setup ","") If Not WinActive("Avvenu 1.1.8 Setup ","") Then WinActivate("Avvenu 1.1.8 Setup ","") WinWaitActive("Avvenu 1.1.8 Setup ","") Send("{ENTER}{ENTER}") Sleep(10000) Send("{ENTER}") sleep(8000) ; WinWaitActive("Avvenu","") Send("usernameTAB}password{ENTER}") sleep(8000) Send("test{ENTER}") sleep(3000) send("{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}") send("{enter}") WinWait("Welcome To Avvenu! - Microsoft Internet Explorer","") If Not WinActive("Welcome To Avvenu! - Microsoft Internet Explorer","") Then WinActivate("Welcome To Avvenu! - Microsoft Internet Explorer","") WinWaitActive("Welcome To Avvenu! - Microsoft Internet Explorer","") Send("{ALTDOWN}{F4}{ALTUP}") Link to comment Share on other sites More sharing options...
MHz Posted December 21, 2005 Share Posted December 21, 2005 I do not want the screens to show up while the installation is going on.Send() requires active windows within the screen area. Have a look at AutoItMacroGenerator in the tools of Scite4AutoIt3, if that is the editor you are using. It will use functions that can do what you want. You could use WinMove() to move the installer off screen so you do not see the installation or minimize the installer or some other methods to make it less visible. Link to comment Share on other sites More sharing options...
Jasondamian Posted December 21, 2005 Author Share Posted December 21, 2005 Send() requires active windows within the screen area. Have a look at AutoItMacroGenerator in the tools of Scite4AutoIt3, if that is the editor you are using. It will use functions that can do what you want. You could use WinMove() to move the installer off screen so you do not see the installation or minimize the installer or some other methods to make it less visible.Thank you I will try that. 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