Modify ↓
Opened 5 years ago
Closed 5 years ago
#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)
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