01-25-2013, 05:49 PM
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.
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
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
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.
/
Allows starting macro only in certain window.
function# iid FILTER&f
Manage32770(&f)
ret iidThen 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
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
