Modify

Opened 5 years ago

Closed 5 years ago

#3802 closed Bug (No Bug)

Window is not activated by a partial title

Reported by: jamsnsou@… 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 Jos, 5 years ago

Resolution: No Bug
Status: newclosed

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

Modify Ticket

Action
as closed The owner will remain Jon.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.