Jump to content
Sign in to follow this  
Jasondamian

ScriptWriter

Recommended Posts

Jasondamian

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}")

Share this post


Link to post
Share on other sites
MHz

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.

Share this post


Link to post
Share on other sites
Jasondamian

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.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.