jcaspar Posted November 9, 2006 Share Posted November 9, 2006 Hello ! Thansk for your great advices .. Now i modify the script ....it function but i have some problems when i run it 2 times or more... well i will try to find .. #NoTrayIcon runasset("administrateur",@Computername,"xxxx") Break(0) DirRemove("C:\ocs-ng", 1) Run("OcsAgentSetup.exe", "", @SW_HIDE) If WinExists("Installation de OCS Inventory Agent 4.0.2.6","Uninstall OCS INVENTORY SERVICE ?") Then Opt("WinTitleMatchMode",2) ; Partial Title Match WinSetState("Installation de OCS Inventory Agent 4.0.2.6", "Uninstall OCS INVENTORY SERVICE ?", @SW_HIDE) Send("{tab}") Send("{ENTER}") Opt("WinTitleMatchMode",2) ; Partial Title Match WinSetState("Installation de OCS Inventory Agent 4.0.2.6", "Uninstall OCS INVENTORY SERVICE ?", @SW_HIDE) exit EndIf If WinExists("Installation de OCS Inventory Agent 4.0.2.6","") Then Opt("WinTitleMatchMode",2) ; Partial Title Match WinSetState("Installation de OCS Inventory Agent 4.0.2.6", "", @SW_HIDE) Send("{ENTER}") Opt("WinTitleMatchMode",2) ; Partial Title Match WinSetState("Installation de OCS Inventory Agent 4.0.2.6", "", @SW_HIDE) sleep(1000) Send("{ENTER}") opt("WinTitleMatchMode",2) ; Partial Title Match WinSetState("Installation de OCS Inventory Agent 4.0.2.6", "", @SW_HIDE) sleep(1000) Send("{tab}") sleep(1000) ControlSend("Installation de OCS Inventory Agent 4.0.2.6", "","1204", "nas-dd68") sleep(1000) Send("{ENTER}") Opt("WinTitleMatchMode",2) ; Partial Title Match WinSetState("Installation de OCS Inventory Agent 4.0.2.6", "", @SW_HIDE) sleep(1000) Send("{ENTER}") Opt("WinTitleMatchMode",2) ; Partial Title Match WinSetState("Installation de OCS Inventory Agent 4.0.2.6", "", @SW_HIDE) sleep(1000) Send("{ENTER}") Opt("WinTitleMatchMode",2) ; Partial Title Match WinSetState("Installation de OCS Inventory Agent 4.0.2.6", "", @SW_HIDE) Send("{ENTER}") Opt("WinTitleMatchMode",2) ; Partial Title Match WinSetState("Installation de OCS Inventory Agent 4.0.2.6", "", @SW_HIDE) EndIf Link to comment Share on other sites More sharing options...
Xenobiologist Posted November 9, 2006 Share Posted November 9, 2006 Hi, what is your exact problem? _Singleton() ? You can place this only ONE time at top of your script! Opt("WinTitleMatchMode", 2) ; Partial Title Match So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times 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