Jump to content

New2Autoit

Member
  • Posts

    3
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

Posts posted by New2Autoit

  1. Just wanted to take this time and introduce myself. I'm a newbie to AutoIt and think it's a very cool program.

    Also I have been working on a script and if anyone can help me out I'll Appreciate it, working on xp sp2 pro.

    Ok, So here it is.

    DriveMapAdd("o:","\\server",8,"myusername","password")

    dim $tab, $enter, $space

    $tab = "{tab}"

    $space= "{space}"

    $enter="{enter}"

    $alt="{alt}"

    ;running command

    Run("cmd.exe")

    send($space)

    send("O:" & $enter)

    ;activating patchlink

    send("UpdateAgent.msi" & $enter )

    ;exiting cmd

    send("exit" & $enter )

    ;waiting for patchlink to initialize - only one window title

    WinWait("PatchLink Update Agent - InstallShield Wizard")

    Send($alt)

    Send("!N")

    Send("!A")

    Send("!N")

    Send("!N")

    ;sends the install command

    send("!i")

    send("!f")

    winwaitnotactive("PatchLink Update Agent - InstallShield Wizard")

    DriveMapdel("o:")

    the problem occurs when the installation finishes. The "!f" never executes, requiring a user to be present. I will continue to look at the autoit bible. Thanks in advance. : D, forgot to note that I don't want to use sleep(), for all machines are not the same. Thanks again

  2. Just wanted to take this time and introduce myself. I'm a newbie to AutoIt and think it's a very cool program.

    Also I have been working on a script and if anyone can help me out I'll Appreciate it.

    Ok, So here it is.

    DriveMapAdd("o:","\\server",8,"myusername","password")

    dim $tab, $enter, $space

    $tab = "{tab}"

    $space= "{space}"

    $enter="{enter}"

    $alt="{alt}"

    ;running command

    Run("cmd.exe")

    send($space)

    send("O:" & $enter)

    ;activating patchlink

    send("UpdateAgent.msi" & $enter )

    ;exiting cmd

    send("exit" & $enter )

    ;waiting for patchlink to initialize - only one window title

    WinWait("PatchLink Update Agent - InstallShield Wizard")

    Send($alt)

    Send("!N")

    Send("!A")

    Send("!N")

    Send("!N")

    ;sends the install command

    send("!i")

    send("!f")

    winwaitnotactive("PatchLink Update Agent - InstallShield Wizard")

    DriveMapdel("o:")

    the problem occurs when the installation finishes. The "!f" never executes, requiring a user to be present. I will continue to look at the autoit bible. Thanks in advance. :D

×
×
  • Create New...