Hi Syco.
GetWindowText() requires a buffer to store the windows caption this should be done using a bank.
when setting the call in the .decls use a bank pointer in GetWindowText(hwnd%,bank*,size%).
getting the caption would look somting like this
the same holds true when getting the class name using GetClassName()
kev
GetWindowText() requires a buffer to store the windows caption this should be done using a bank.
when setting the call in the .decls use a bank pointer in GetWindowText(hwnd%,bank*,size%).
getting the caption would look somting like this
bank = CreateBank(256) caption_length = GetWindowText(hwnd,bank,256) for loop = 0 to caption_length ; peek the string from the bank next FreeBank bank
the same holds true when getting the class name using GetClassName()
kev