Windows API Calls for Powerbuilder 5.0

¹®Á¦

FindWindowA( )

ÇØ°á

This function gets the handle any window that is called by name. A common pitfall is to make a call with the window’s save name rather than the name that appears in the title bar, i.e. microsoft Word - api32.doc.
The Powerbuilder equivalent is the function Handle( ), but it is limited to PB windows only.

Global External Function:
FUNCTION ulong FindWindowA(ulong classname,string windowname) LIBRARY "User32.dll"

Script:
ulong l_handle
l_handle = FindWindowA(0,"<window name>") // i.e. file Manager or numbers.txt - NotePad

 

ÂüÁ¶