Jump to content

Recommended Posts

Posted

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?

Posted

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.

  • Developers
Posted (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 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.
  :)

Posted
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.

Posted
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?

Posted
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.

  • Developers
Posted (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 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.
  :)

  • Jos locked this topic
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...