[SOLVED] Retrieve Scintilla gadget handles in third-party applications?
Posted: Tue Jul 30, 2024 7:27 pm
Hello,
From the following code, how do you find out whether or not each app contains a Scintilla gadget and, if so, retrieve the handle so you can insert text inside it?
Thanks.
From the following code, how do you find out whether or not each app contains a Scintilla gadget and, if so, retrieve the handle so you can insert text inside it?
Code: Select all
Procedure.i Fc_Test()
Protected.i IDFenetreAppli
Protected.s TitreFenetre
IDFenetreAppli=FindWindow_(0,0)
Repeat
IDFenetreAppli=GetWindow_(IDFenetreAppli,#GW_HWNDNEXT)
If IDFenetreAppli And IsWindowVisible_(IDFenetreAppli) And GetWindowLongPtr_(IDFenetreAppli,#GWL_HWNDPARENT)=0
TitreFenetre=Space(#MAX_PATH)
GetWindowText_(IDFenetreAppli,@TitreFenetre,#MAX_PATH)
If TitreFenetre<>""
Debug TitreFenetre
; [...]
EndIf
EndIf
Until IDFenetreAppli=0
EndProcedure
Fc_Test()
Thanks.