Retrieve window handle by its titleTag(s): WinAPI/Registry


[local fucntion declaration]
FUNCTION ulong FindWindowA(ulong classname,string windowname) &
 LIBRARY "user32.dll"

[powerscript]
public function unsignedlong uf_findwindow (string as_name);
//
// as_name:   Name of window (case sensitive)
//
// Returns: Window handle or zero if not found
//

ulong    ul_class

SetNull(ul_class)
RETURN FindWindowA(ul_class,as_name)



blog comments powered by Disqus