Vinicius2023 Posted January 24, 2023 Share Posted January 24, 2023 Good afternoon, I automated an installation, but I need it to run in the background, I had "@SW_HIDE" but it didn't work, can you help me? installation.txt Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted January 24, 2023 Moderators Share Posted January 24, 2023 First off, what is the name of the application you're installing? If it doesn't support a silent install, it will be difficult to make it so. Also, realize, from your installation.txt, that all those MouseClicks are not going to work if the window is not visible. You'd have to re-architect the script to use the Control* commands. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Vinicius2023 Posted January 25, 2023 Author Share Posted January 25, 2023 Could you give me an example script about these control commands, please? Link to comment Share on other sites More sharing options...
water Posted January 25, 2023 Share Posted January 25, 2023 If your application supports a silent install you do not need to automate the installation GUI. So please provide the name of the program you need to install. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Vinicius2023 Posted January 25, 2023 Author Share Posted January 25, 2023 It is a corporate security program called Senior Ronda Link to comment Share on other sites More sharing options...
water Posted January 25, 2023 Share Posted January 25, 2023 Google can't find anything about this program. But I'm sure a professional security program offers a silent installation option. Did you have a look at the installation manual? My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted January 26, 2023 Moderators Share Posted January 26, 2023 16 hours ago, Vinicius2023 said: Could you give me an example script about these control commands, please? The help file can give you numerous examples. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
mistersquirrle Posted January 30, 2023 Share Posted January 30, 2023 ControlClick: https://www.autoitscript.com/autoit3/docs/functions/ControlClick.htm and ControlSend: https://www.autoitscript.com/autoit3/docs/functions/ControlSend.htm are what you'll want to look at for interacting with a hidden window. You'll likely need to use the AutoIt Window Info tool to get control IDs if available: https://www.autoitscript.com/autoit3/docs/intro/au3spy.htm That being said, looking at your installation.txt (next time instead of uploading a file, you can post the code into your post using the insert Code button, looks like <>), I see that you're using GUISetState(@SW_HIDE) which isn't the correct function. Any GUI* function is for GUIs that YOU create. You want to look at the WinSetState function: https://www.autoitscript.com/autoit3/docs/functions/WinSetState.htm We ought not to misbehave, but we should look as though we could. 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