Zawarujqa Posted February 3, 2021 Share Posted February 3, 2021 A C# / .Net 5.0 console project. using AutoIt; using System; using static AutoIt.AutoItX; AutoItSetOption("WinTitleMatchMode", -2); Console.WriteLine("Window activating..."); Console.WriteLine( "by partial title: " + WinActivate("OneNote") ); Console.WriteLine( "by full title: " + WinActivate("title - OneNote") ); Console.WriteLine( "by handle: " + WinActivate(new IntPtr(0x0000000000250D90)) ); The output: Window activating... by partial title: 0 by full title: 1 by handle: 1 Why the partial title activation doesn't work? Link to comment Share on other sites More sharing options...
Zawarujqa Posted February 4, 2021 Author Share Posted February 4, 2021 In the beginning, I didn't pay attention: the latest release is from March 2018. If the AutoIt project is not dead, then it is definitely sluggishly maintained. Link to comment Share on other sites More sharing options...
Developers Jos Posted February 4, 2021 Developers Share Posted February 4, 2021 (edited) Did you check whether there a more windows that could be valid for the partial window title? 2 hours ago, Zawarujqa said: If the AutoIt project is not dead, then it is definitely sluggishly maintained. ..and your point being?: show how thankful you are? Trying to be a smart-ass? anything in between those 2 categories? Let us know when you have any comments that contribute like what you are currently missing. Jos Edited February 4, 2021 by 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. Link to comment Share on other sites More sharing options...
Zawarujqa Posted February 4, 2021 Author Share Posted February 4, 2021 15 minutes ago, Jos said: Did you check whether there a more windows that could be valid for the partial window title? Just one window. Apparently, I'll have to use p/invoke or look for nuget packages for UI automation. I have a feeling that migration from AutoIt to .NET of my 2013 project will take a very loooong time… Although why am I surprised? After all, I'm using free tools. Furthermore, from 2018. Link to comment Share on other sites More sharing options...
Nine Posted February 4, 2021 Share Posted February 4, 2021 30 minutes ago, Zawarujqa said: Although why am I surprised? After all, I'm using free tools. Furthermore, from 2018. Are you playing with the handles of your....coffin ? Musashi and Earthshine 2 “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) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Zawarujqa Posted February 4, 2021 Author Share Posted February 4, 2021 5 hours ago, Nine said: Are you playing with the handles of your....coffin ? I'd rather play with the handle of a window if I could get it and pass it to WinActivate method. By the way, do you have any ideas? Link to comment Share on other sites More sharing options...
Nine Posted February 4, 2021 Share Posted February 4, 2021 With the attitude you just showed, I highly doubt someone will run to help you out. Good luck though. “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) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Zawarujqa Posted February 5, 2021 Author Share Posted February 5, 2021 14 hours ago, Nine said: With the attitude you just showed, I highly doubt someone will run to help you out. Good luck though. Well, thank you for another pointless answer. It is very sad that people with the Developers & MVPs statuses are of no use. This is the price we pay for using free closed-source tools developed by unpaid enthusiasts. Link to comment Share on other sites More sharing options...
Developers Jos Posted February 5, 2021 Developers Share Posted February 5, 2021 (edited) 19 minutes ago, Zawarujqa said: This is the price we pay for using free closed-source tools developed by unpaid enthusiasts. Yeap. Think we are done here. Edited February 5, 2021 by Jos JockoDundee 1 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. Link to comment Share on other sites More sharing options...
Recommended Posts