MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / DetermineTargetWindow

Method DetermineTargetWindow

source/script2.cpp:8925–8937  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8923////////////////////////////////
8924
8925DECLSPEC_NOINLINE // Lexikos: noinline saves ~300 bytes. Originally the duplicated code prevented inlining.
8926HWND Line::DetermineTargetWindow(LPTSTR aTitle, LPTSTR aText, LPTSTR aExcludeTitle, LPTSTR aExcludeText)
8927{
8928 // Lexikos: Not sure why these checks were duplicated here and in WinExist(),
8929 // so they're left here for reference:
8930 //HWND target_window; // A variable of this name is used by the macros below.
8931 //IF_USE_FOREGROUND_WINDOW(g->DetectHiddenWindows, aTitle, aText, aExcludeTitle, aExcludeText)
8932 //else if (*aTitle || *aText || *aExcludeTitle || *aExcludeText)
8933 // target_window = WinExist(*g, aTitle, aText, aExcludeTitle, aExcludeText);
8934 //else // Use the "last found" window.
8935 // target_window = GetValidLastUsedWindow(*g);
8936 return WinExist(*g, aTitle, aText, aExcludeTitle, aExcludeText);
8937}
8938
8939
8940ResultType GetObjectIntProperty(IObject *aObject, LPTSTR aPropName, __int64 &aValue, ResultToken &aResultToken, bool aOptional)

Callers

nothing calls this directly

Calls 1

WinExistFunction · 0.85

Tested by

no test coverage detected