Page 2 of 2

Posted: Fri May 30, 2008 9:22 pm
by ABBKlaus
Fred is right, the EnumWindowsProc takes only 2 parameters.
Heres the one that TailBite uses :

Code: Select all

  Structure FindProcInfo
    Terminate.l
    ProcessName$
    FindText$
    NoText$
  EndStructure
 
  Procedure EnumWindowsProc(hWnd, *lParam.FindProcInfo)
    Protected result.l,*szBuffer,WText$
    
    result = #True
    *szBuffer = AllocateMemory(1024)
    GetWindowText_(hWnd, *szBuffer, 1024)
    WText$ = PeekS(*szBuffer)
    FreeMemory(*szBuffer)
    If Left(WText$, Len(*lParam\FindText$))=*lParam\FindText$
      If WText$<>*lParam\NoText$
        hIDE = hWnd
        GetProcessListResult$ = Right(WText$, Len(WText$)-Len(*lParam\FindText$))
        result = #False
      EndIf
    EndIf
    ProcedureReturn result
  EndProcedure

Posted: Mon Jun 02, 2008 6:09 pm
by harff182
eddy wrote:I see no problem with the last version
The problem is an IMA at line 65: "EnumWindows_(@CreateTooltipManager(), #PB_Ignore)".
It says: Invalid memory access. (read error at address 220)

Posted: Mon Jun 02, 2008 8:06 pm
by eddy
ok i'll fix that

Posted: Mon Jun 02, 2008 10:26 pm
by eddy
[FIXED]

Posted: Tue Jun 03, 2008 7:49 pm
by harff182
eddy wrote:[FIXED]
Thanks, no probs anymore :P

Posted: Sat Sep 20, 2008 6:59 pm
by eddy
Update for PB4.30b1