Sign in to follow this  
Followers 0
jcaspar

Autoit mode silencieux

9 posts in this topic

#1 ·  Posted (edited)

:idea:Bonjour à tous ! -_-

Je souhaiterais savoir s'il exist un moyen pour que l'execution d'un script autoit soit invisible

pour les utilisateurs ? :P

Merci d'avance pour vos idées conseils et suggestions ;)

Jean Marc :whistle:o:)

Hello !

I'd like to know if is a way to hide the way

the script run ... i mean that the users don't see

the windows open and close alone ...

Thanks a lot for your advices and tricks ! ;):D

Edited by jcaspar

Share this post


Link to post
Share on other sites



Si tu ajoute la ligne suivante à la première ligne de ton script, tu caches l'icone d'AutoIt dans la zone de notification:

#NoTrayIcon

Pour le reste, lis un peu l'aide!

Share this post


Link to post
Share on other sites

It is not nice to speak in french on those forums which are in english.

ce n'est pas sympa de parler en français dans ces forums qui sont en anglais. Merci de faire un effort et de n'utiliser le français que dans des cas exceptionnels. écrire au moins dans les 2 langues. :whistle:

Share this post


Link to post
Share on other sites

Si tu ajoute la ligne suivante à la première ligne de ton script, tu caches l'icone d'AutoIt dans la zone de notification:

#NoTrayIcon

Pour le reste, lis un peu l'aide!

Génial !

Mais bon cela ne cache pas l'ouverture et la fermeture des fenêtres ...

j'ai essayer avec WinSetState("Installation de OCS Inventory Agent 4.0.2.6", "Uninstall OCS INVENTORY SERVICE ?", @SW_HIDE) mais cela ne change rien je vois toujours les fenetres ...

Great !

but it doesn't resolve my problem. i did try with WinSetState("Installation de OCS Inventory Agent 4.0.2.6", "Uninstall OCS INVENTORY SERVICE ?", @SW_HIDE) but it hide nothing ! lol !

Thanks for all your tricks and advices !

Jean Marc :whistle:;)

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Great !

but it doesn't resolve my problem. i did try with WinSetState("Installation de OCS Inventory Agent 4.0.2.6", "Uninstall OCS INVENTORY SERVICE ?", @SW_HIDE) but it hide nothing ! lol !

Thanks for all your tricks and advices !

Jean Marc :whistle:;)

Jean Marc, the string entered as Title and Text are probably not accurate enough for AutoIt to find a match, or they are either too acurate (meaning, inacurate). Try this:

Opt("WinTitleMatchMode",2) ; Partial Title Match

WinSetState("OCS Inventory Agent", "", @SW_HIDE)

Edit: Bonjour, lol. ^^

Edited by Manadar

Share this post


Link to post
Share on other sites

-_- Hello ! o:)

Thanks for your advices . :D ...but i still have the same problem :whistle:;)

i send you my script... i would like that the users don't see the windows .... ;)

I think we are near to fid the solution ... and i hope we can kill this problem lol ! :P

Thanks a lot for your help !

Jean Marc :idea:

#NoTrayIcon

runasset("administrateur",@Computername,"****")

Break(0) ;

run("OcsAgentSetup.exe")

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}")

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}")

sleep(1000)

Send("{ENTER}")

sleep(1000)

Send("{tab}")

sleep(1000)

Send("nas-dd68")

sleep(1000)

Send("{ENTER}")

sleep(1000)

Send("{ENTER}")

sleep(1000)

Send("{ENTER}")

sleep(2500)

EndIf

Share this post


Link to post
Share on other sites

Just on a side note, the Send command only sends keys to the active window. When a window is hidden, you can't send keys via the Send function, you have to use ControlSend.

Share this post


Link to post
Share on other sites

You could use this instead of hiding the window when it exists:

Run("OcsAgentSetup.exe", "", @SW_HIDE)

# MY LOVE FOR YOU... IS LIKE A TRUCK- #

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