Moses2492 Posted April 26, 2022 Posted April 26, 2022 (edited) Hi, Pretty new to Auto-IT. I want to create an automation installation on my server for a specific installer. I was able to click buttons (next buttons and etc') My question is how I can insert text values (lets say IP addresses, username and passwords) automatically for a specific rubric on the installer? Tried to follow KBs of Autoit without success. Thanks you all. Edited April 26, 2022 by Jos
Developers Jos Posted April 26, 2022 Developers Posted April 26, 2022 Welcome, There is not enough information there to give you an proper answer. You need to provide the script with your effort and include the info found with AU3INFO about the Window/Control information which you are trying to provide info for. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Moses2492 Posted April 26, 2022 Author Posted April 26, 2022 Hi, Sorry for the misinformation - new here as I said The script is basic: #RequireAdmin Run(@ScriptDir & '\WebsenseInstaller-8.6.2.225.exe') AutoItSetOption('MouseCoordMode', 0) WinWait('Forcepoint Security Setup') WinActivate('Forcepoint Security Setup') MouseClick('primary', 363, 206, 1, 0) I try to launch Forcepoint program installer and to click with MouseClick on "Modify Button": Please let me know if any other information is needed. Thanks!
Moses2492 Posted April 26, 2022 Author Posted April 26, 2022 When I set the MouseClick as mentioned- I see the click being happen on different place (the position on the Autoit is 363 ,203. Regards.
abberration Posted April 26, 2022 Posted April 26, 2022 (edited) Your screenshot shows the program may be able to be controlled with ControlClick, which would be more reliable if supported. For your particular application, I think this might work: ControlClick("Forcepoint Security Setup", "", "[CLASS:WindowsForms10.STATIC.app.0.33c0d9d; Instance:17]", "Left") Edited April 26, 2022 by abberration Fixed an error Easy MP3 | Software Installer | Password Manager
Musashi Posted April 26, 2022 Posted April 26, 2022 2 hours ago, Moses2492 said: I want to create an automation installation on my server for a specific installer. Often Installers or Setup programs provide a so-called Silent / Quiet option. This allows various settings to be passed to the Installer using command line parameters. You should check if this is possible with your software. "In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."
Moses2492 Posted April 26, 2022 Author Posted April 26, 2022 I tried: ControlClick("Forcepoint Security Setup", "", "[CLASS:WindowsForms10.STATIC.app.0.33c0d9d; Instance:17]", "Left") Unfortunately no success.
Nine Posted April 26, 2022 Posted April 26, 2022 (edited) Since we do not see the full class name of the control, there maybe an misspell. Try using the id directly : ControlClick("Forcepoint Security Setup", "", 2949354, "Left") FYI, the positon of the control shown in the Au3info tool is the client area position. The position of the mouse shown in the tool will depend on Option/CoordMode menu. ps. use tags when you post code as described in the link Edited April 26, 2022 by Nine “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
Earthshine Posted April 26, 2022 Posted April 26, 2022 (edited) i never had any luck with win10 forms and standard autoit. standard autoit cannot interact with WPF applications i would try UIAutomation instead. See FAQ 31 Edited April 26, 2022 by Earthshine My resources are limited. You must ask the right questions
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