Bagel Posted October 4, 2018 Posted October 4, 2018 Hello, I'm trying to create a script in Powershell using the AutoIT Powershell command-lets but having great difficulty pulling the names or handles for open windows that contain titles that have certain text strings. My goal is to minimize and restore multiple windows at a time and some of those windows have the same or similar names. I can use Set-AU3WinState and Get-AU3WinTitle but when I do AutoIT seems to grab only one of those windows. And it seems to be the first one that matches the text I'm searching for in the list of child processes under the main program shown in Task Manager. So I started looking at the AutoIT function WinList and it seemed perfect but there doesn't appear to be any synonym for that among the AutoIT Powershell cmd-lts. How can I achieve this with the Powershell command-lets for AutoIT? I am somewhat familiar with Powershell and am trying to avoid having to learn Powershell, native AutoIT scripting language AND C# (for a few other things) just to perform this task and am hoping there is a more elegant all-in solution for Powershell which I plan to use to create GUI elements/forms etc... Thanks for any help!
careca Posted October 21, 2018 Posted October 21, 2018 I cant talk about powershell but autoit can differentiate between windows with the same name, using handle or the text in the window. If you dont want to learn autoit, it's harder to get where you want. To minimize and restore windows it can all be done with autoit, i fail to see why you need powershell or C#. Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe
Earthshine Posted October 21, 2018 Posted October 21, 2018 you could do everything in autoit or c#, whatever is easier for you. both very simple. 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