Modify ↓
Opened on Feb 3, 2021 at 7:12:33 PM
Closed on Feb 3, 2021 at 7:59:07 PM
#3802 closed Bug (No Bug)
Window is not activated by a partial title
| Reported by: | Owned by: | Jon | |
|---|---|---|---|
| Milestone: | Component: | AutoItX | |
| Version: | 3.3.15.3 | Severity: | None |
| Keywords: | WinActivate WinTitleMatchMode | Cc: |
Description
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?
Attachments (0)
Change History (1)
comment:1 by , on Feb 3, 2021 at 7:59:07 PM
| Resolution: | → No Bug |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

This is not a support forum, so please visit our support forums for questions and only post here when you have a confirmed bug.
Thanks,
Jos