jcaspar Posted November 7, 2006 Share Posted November 7, 2006 (edited) Bonjour à tous ! Je souhaiterais savoir s'il exist un moyen pour que l'execution d'un script autoit soit invisible pour les utilisateurs ? Merci d'avance pour vos idées conseils et suggestions Jean Marc Hello !I'd like to know if is a way to hide the way the script run ... i mean that the users don't seethe windows open and close alone ...Thanks a lot for your advices and tricks ! Edited November 8, 2006 by jcaspar Link to comment Share on other sites More sharing options...
Uten Posted November 7, 2006 Share Posted November 7, 2006 Hei, Du har vist at du kan Engelsk så hvorfor ikke bruk det? Hilsen Uten Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
Megabird Posted November 7, 2006 Share Posted November 7, 2006 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! Link to comment Share on other sites More sharing options...
jpm Posted November 7, 2006 Share Posted November 7, 2006 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. Link to comment Share on other sites More sharing options...
jcaspar Posted November 8, 2006 Author Share Posted November 8, 2006 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 Link to comment Share on other sites More sharing options...
jvanegmond Posted November 8, 2006 Share Posted November 8, 2006 (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 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 November 8, 2006 by Manadar github.com/jvanegmond Link to comment Share on other sites More sharing options...
jcaspar Posted November 8, 2006 Author Share Posted November 8, 2006 Hello ! Thanks for your advices . ...but i still have the same problem 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 ! Thanks a lot for your help ! Jean Marc #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 Link to comment Share on other sites More sharing options...
jvanegmond Posted November 8, 2006 Share Posted November 8, 2006 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. github.com/jvanegmond Link to comment Share on other sites More sharing options...
AzKay Posted November 8, 2006 Share Posted November 8, 2006 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- # 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