| |
|
|
| sometimes needed is a function The as XProfan FindWindow-function functions but in several Threads and therefore as nProc.
gives with existence one Fensters, which Headline with s begins, instead of 0 which lever back.
nProc findWindowX(string s){
case s=="" : return 0
long lst=dim(16)
long lst&,0=0,addr(s),dim(512),len(s)
enumWindows(procAddr(findWindowX.enumProc),lst)
long h=long(lst,0)
dispose(long(lst,8))
dispose(lst)
return h
}
nProc findWindowX.enumProc(long wnd,lst){
PushAll
long r=getWindowTextLength(wnd),\
l=long(lst,12)
if r<l {
PopAll
return true
}
ifnot r==getWindowText(wnd,long(lst,8),511) {
PopAll
return true
}
if char(long(lst,4),0,l)==char(long(lst,8),0,l) {
long lst&,0=wnd
PopAll
return false
}
PopAll
return true
}
|
|
|
| |
|
|
|
| but not The function XProfan.FindWindow To name appear me now FindWindowX passender -
gives Yes The FindWindow- and the FindWindowEx-API -
there fit Yes FindWindowX where the X hold for XProfan instead of "Extended" standing and API-terms kanns so neither bump. |
|
|
| |
|
|