Skip to content

Commit

Permalink
Part2 - Allow Gui,+LastFound `n hwnd:=WinExist()
Browse files Browse the repository at this point in the history
  • Loading branch information
RaptorOne committed Apr 3, 2011
1 parent 409ef78 commit 482cdf4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Rusty/Cores/Window.cs
Expand Up @@ -511,6 +511,11 @@ public static void WinClose(string title = null, string text = null, string excl
/// <returns></returns>
public static long WinExist(string title = null, string text = null, string excludeTitle = null, string excludeText = null)
{
if (title == string.Empty)
{
if (LastFoundForm != 0)
return LastFoundForm;
}
var win = windowManager.FindWindow(title, text, excludeTitle, excludeText);
return win.Handle.ToInt64();
}
Expand Down

0 comments on commit 482cdf4

Please sign in to comment.