Help - Search - Members - Calendar
Full Version: AutoIT Scrip needed
MSFN Forums > Unattended Windows Discussion & Support > Application Installs

   
Google Internet Forums Unattended CD/DVD Guide
Alagor
Opt("WinWaitDelay",100)
Opt("WinTitleMatchMode",4)
Opt("WinDetectHiddenText",1)
Opt("MouseCoordMode",0)
Run('nod32.exe')

waitingforretun? **

EXIT

**I need scrip that when executing one apliacion with "run", is expected until that process finishes (nod32.exe) and finishes closes scrip
jondercik
change Run('nod32.exe')
to
RunWait('nod32.exe')
Alagor
thx

other question

Run(program.msi)

NOT WORK? no.gif no.gif

like executing a program msi?

and html file? (page.html)

thx!
The Glimmerman
QUOTE (Alagor @ Oct 14 2006, 01:00 PM) *
**I need scrip that when executing one apliacion with "run", is expected until that process finishes (nod32.exe) and finishes closes scrip


Use the run command
and the use this.

CODE
ProcessWait("NOD32.exe")
The Glimmerman
CODE
Run(@ComSpec & " /C " & "%SYSTEMDRIVE%\UTILS\xxx.msi /qn", "", @SW_HIDE)


CODE
; *******************************************************
; Example 1 - Create a browser window and navigate to a website
; *******************************************************
;
#include <IE.au3>
$oIE = _IECreate ("www.autoitscript.com")

; *******************************************************
; Example 2 - Create new browser windows pointing to each of 3 different URLs
;               if one does not already exist ($f_tryAttach = 1)
;               do not wait for the page loads to complete ($f_wait = 0)
; *******************************************************
;
#include <IE.au3>
_IECreate ("www.autoitscript.com", 1, 1, 0)
_IECreate ("my.yahoo.com", 1, 1, 0)
_IECreate ("www.google.com", 1, 1, 0)

; *******************************************************
; Example 3 - Attempt to attach to an existing browser displaying a particular website URL
;               Create a new browser and navigate to that site if one does not already exist
; *******************************************************
;
#include <IE.au3>
$oIE = _IECreate ("www.autoitscript.com", 1)
; Check @extended return value to see if attach was successful
If @extended Then
    MsgBox(0, "", "Attached to Existing Browser")
Else
    MsgBox(0, "", "Created New Browser")
EndIf

; *******************************************************
; Example 4 - Create an empty browser window and populate it with custom HTML
; *******************************************************
;
#include <IE.au3>
$oIE = _IECreate ()
$sHTML = "<h1>Hello World!</h1>"
_IEBodyWriteHTML ($oIE, $sHTML)

; *******************************************************
; Example 5 - Create an invisible browser window, navigate to a website,
;               retrieve some information and Quit
; *******************************************************
;
#include <IE.au3>
$oIE = _IECreate ("http://sourceforge.net", 0, 0)
; Display the innerText on an element on the page with a name of "sfmarquee"
$oMarquee = _IEGetObjByName ($oIE, "sfmarquee")
MsgBox(0, "SourceForge Information", $oMarquee.innerText)
_IEQuit ($oIE)
Alagor
QUOTE (The Glimmerman @ Oct 14 2006, 08:51 AM) *
CODE
Run(@ComSpec & " /C " & "%SYSTEMDRIVE%\UTILS\xxx.msi /qn", "", @SW_HIDE)


Not work no.gif no.gif ?? :

Run(@ComSpec & " /C " & "xxx.msi /xxx /xxx", "", @SW_HIDE)

it cannot directly execute the application that wishes without looking for the route systemdrive\etc?



CODE
; *******************************************************
; Example 1 - Create a browser window and navigate to a website
; *******************************************************
;
#include <IE.au3>
$oIE = _IECreate ("www.autoitscript.com")

; *******************************************************
; Example 2 - Create new browser windows pointing to each of 3 different URLs
;               if one does not already exist ($f_tryAttach = 1)
;               do not wait for the page loads to complete ($f_wait = 0)
; *******************************************************
;
#include <IE.au3>
_IECreate ("www.autoitscript.com", 1, 1, 0)
_IECreate ("my.yahoo.com", 1, 1, 0)
_IECreate ("www.google.com", 1, 1, 0)

; *******************************************************
; Example 3 - Attempt to attach to an existing browser displaying a particular website URL
;               Create a new browser and navigate to that site if one does not already exist
; *******************************************************
;
#include <IE.au3>
$oIE = _IECreate ("www.autoitscript.com", 1)
; Check @extended return value to see if attach was successful
If @extended Then
    MsgBox(0, "", "Attached to Existing Browser")
Else
    MsgBox(0, "", "Created New Browser")
EndIf

; *******************************************************
; Example 4 - Create an empty browser window and populate it with custom HTML
; *******************************************************
;
#include <IE.au3>
$oIE = _IECreate ()
$sHTML = "<h1>Hello World!</h1>"
_IEBodyWriteHTML ($oIE, $sHTML)

; *******************************************************
; Example 5 - Create an invisible browser window, navigate to a website,
;               retrieve some information and Quit
; *******************************************************
;
#include <IE.au3>
$oIE = _IECreate ("http://sourceforge.net", 0, 0)
; Display the innerText on an element on the page with a name of "sfmarquee"
$oMarquee = _IEGetObjByName ($oIE, "sfmarquee")
MsgBox(0, "SourceForge Information", $oMarquee.innerText)
_IEQuit ($oIE)


it cannot open a document HTML directly? the pagina Web that I want to open to load scrip that it takes the HTML and for that reason it is not a direct link that can be created with IECreate

thx very much
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.