Jump to content

ScriptWriter


Recommended Posts

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

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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...