Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Filter function problem
#1
Hi Gintaras and all,

i tried to create a filter function to intercept #32770 windows class, and close automagically some that are annoying.

First i created a filter function, triggered by #32770 class windows, from template, which calls function A with f as parameter.

Code:
Copy      Help
/
Allows starting macro only in certain window.

function# iid FILTER&f
Manage32770(&f)
ret iid

Then i try to search for childs in f.hwnd window, to see if i close it or not.
I must inspect childs of f.hwnd, and for instance, look if one contains some text.

function Manage32770

Code:
Copy      Help
function FILTER'&f
_s.getwintext(f.hwnd)
out _s
_s.getwinclass(f.hwnd)
out _s
_s.getwinexe(f.hwnd)
out _s

int h=WinC("Texttosearchfor" "" 0 "" "#32770")

Problem 1: i always get a message saying the filter function is too long, though i thought that the Manage32770 function will handle it alone.
Is there a way to get out the filter function immediatly and leave the manage32770 function do its job on its own?

Problem 2: i can't find the proper way to enumerate childs of f.hwnd, either by WinC, or Acc getchildobjects.

I know you'll save my bacon....

thanks


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)