Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
wintest when name is empty
#1
I understand that when in wintest window name is empty it implies "accept all". There exists a case of a third party application using an empty class #32770 window. I am in need to check in a filter function, namely :
Function FF_FlashFol_v0
Code:
Select All      Help
;/
;Allows starting macro only in certain window.
function# iid FILTER&f
_s.getwintext(f.hwnd)
if(empty(_s)) ret iid
;if(wintest(f.hwnd "" "#32770")) ret iid

I concluded to this workaround. I wonder whether I can still use wintest somehow.
Many thanks in advance for any suggestion.
#2
String "*" matches windows with no name.
#3
Many thanks indeed. I am sorry I have missed that.
#4
I am sorry, I have tested it, it does not work. I wonder whether I misunderstood something :
Function FF_FlashFol
Code:
Select All      Help
;/
;Allows starting macro only in certain window.
;www.quickmacros.com/forum/viewtopic.php?p=33490
function# iid FILTER&f
_s.getwintext(f.hwnd)
outt F"*{_s}*"
_s.getwinclass(f.hwnd)
out _s
outw f.hwnd
_i=wintest(f.hwnd "*" "")
out _i
if(wintest(f.hwnd "*" "#32770")) ret iid

This is how QM output looks like :
09:47:39 : FF_FlashFol - **
68225658 #32770 ""
0
09:47:39 : FF_FlashFol - *Open Image Files*
10225728 #32770 "Open Image Files"
0
#5
Need flag 1.


Forum Jump:


Users browsing this thread: 1 Guest(s)