Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Easy FilterFunction for childwindow
#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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)