Skip to content

Commit caf37b6

Browse files
committed
Changed a logic for console windows.
1 parent 76bc8c5 commit caf37b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WindowTextExtractor/Forms/MainForm.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ public bool PreFilterMessage(ref Message m)
218218

219219
if (!element.Current.IsPassword && _isButtonTargetTextMouseDown)
220220
{
221-
var text = element.GetTextFromWindow();
221+
var text = element.GetTextFromConsole() ?? element.GetTextFromWindow();
222222
txtContent.Text = text == null ? "" : text.TrimEnd().TrimEnd(Environment.NewLine);
223223
txtContent.ScrollTextToEnd();
224224
UpdateStatusBar();

0 commit comments

Comments
 (0)