Sign in to follow this  
Followers 0
jcaspar

hide execution

2 posts in this topic

Hello ! :P

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 .. ;):whistle:

#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

Share this post


Link to post
Share on other sites



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

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  
Followers 0