Enrico wrote:I use it every day but the answers are always useless. I hope it will improve in the future.Otto wrote:Please take a look at the answer.
I can't say more: I always get useless responses.
Enrico wrote:I use it every day but the answers are always useless. I hope it will improve in the future.Otto wrote:Please take a look at the answer.
Enrico Maria Giordano wrote:I use it every day but the answers are always useless.
Jimmy wrote:hi,Enrico Maria Giordano wrote:I use it every day but the answers are always useless.
i won´t say that Answer from ChatGPT is useless.
it is true that ChatGPT can´t do your JOB and write full working CODE for You.
but ChatGPT can give You a Idea what to do.
What is the classname of thunderbird.exe?
The classname for the main window of Thunderbird is typically "MozillaWindowClass".
? FINDWINDOW( "the compose dialog of Thunderbird classname" )
FINDWINDOW( "classname", "window title" )
#include "FiveWin.ch"
// Define necessary constants
#define GW_CHILD 5
#define GW_HWNDNEXT 2
FUNCTION Main()
LOCAL aWindows := {}
LOCAL cName := ""
LOCAL hwnd := GetWindow( GetDesktopWindow(), GW_CHILD )
LOCAL cClassName := Space( 256 )
LOCAL cClassNameMain := "MozillaWindowClass" // Class name for the main Thunderbird window
LOCAL hwndMain, hwndChild, cClassNameChild
// Iterate through all windows to find the main Thunderbird window
WHILE hwnd != 0
cName := GetClassName( hwnd, @cClassName, Len( cClassName ) )
IF Len( cName ) > 0
cName := Left( cName, Len( cName ) )
IF cName == cClassNameMain
// Now iterate through child windows of the main Thunderbird window
hwndChild := GetWindow( hwnd, GW_CHILD )
cClassNameChild := Space( 256 )
WHILE hwndChild != 0
cName := GetClassName( hwndChild, @cClassNameChild, Len( cClassNameChild ) )
IF Len( cName ) > 0
cName := Left( cName, Len( cName ) )
IF cName == "MozillaCompositorWindowClass"
AADD( aWindows, { hwndChild, cName } )
ENDIF
ENDIF
hwndChild := GetWindow( hwndChild, GW_HWNDNEXT )
ENDDO
ENDIF
ENDIF
hwnd := GetWindow( hwnd, GW_HWNDNEXT )
ENDDO
// Display the results
xbrowse(aWindows)
RETURN NIL
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 82 guests