Last active
December 15, 2020 18:39
-
-
Save Memphizzz/ed69d2500c422019609c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Helpers.ShowFileProperties(sourcePath); | |
IntPtr ptr = IntPtr.Zero; | |
var title = IsDirectory(sourcePath) ? new DirectoryInfo(sourcePath).Name : new FileInfo(sourcePath).Name; | |
title += " Properties"; | |
while (ptr == IntPtr.Zero) | |
ptr = Helpers.FindWindow("#32770", title); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@kanchanpatil10 Hi, this is a very old gist and I don't know how you found it but in your case wouldn't the SetTitleMatchMode Option work for you and just set it to from beginning instead of exact match? The path should be first in the properties dialogs title so without "Properties" and still keeping the class (#32770), it should match.