Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Easy FilterFunction for childwindow
#1
Hello everybody,

i have been spending the last couple hours reading the manual and trying to figure out how to do the following. In Picture one you can see a child window (yellow marked):
https://onedrive.live.com/redir?resid=d ... hoto%2cJPG

Picture 2 shows what quick macro shows me when i hover over this child window:
https://onedrive.live.com/redir?resid=d ... hoto%2cpng

i now want to have a Filterfunction that makes sure the macro only gets executed if this child window is active/beeing used

How do i do this right?
#2
Function FF_Macro2546
Code:
Copy      Help
;/
function# iid FILTER&f

if(!wintest(f.hwnd "Top-Leiste" "TfrmTopBar")) ret -2
;f.hwnd2=child ;;enable this if using with not a keyboard trigger

;use one of these, which works better
if(!f.hwnd2 or !childtest(f.hwnd2 "" "ComboBox" f.hwnd)) ret -2 ;;the trigger will work when any ComboBox in that window is focused
;if(!f.hwnd2 or !childtest(f.hwnd2 "" "ComboBox" f.hwnd 0 "accName=Kennwort:")) ret -2 ;;use this if the accessible name is "Kennwort:"

;Here you can also test some other properties of f.hwnd2.

ret iid


Forum Jump:


Users browsing this thread: 1 Guest(s)