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); |
@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.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
title matching with FindWindow is working good on english locale but if another locale it fails, do you face same issue on different locale, the Main issue I am facing now, shellexecute is not returning window handle so we need to use findwindow with title matching, which is not working in other locale.
Could you please give me a suggestion if you face same issue