Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
arrays
#2
;tranlated to qm:

Code:
Copy      Help
int mode i
int hwnd=win
;______________________________

;version 1 (dynamic str array)
str caption.getwintext(hwnd)
str* v=calloc(10 sizeof(str))
v[0]= "open"
v[1]= "Öffnen"
v[2]= "Import"
v[3]= "Anderes Symbol"
v[4]= "Select Icon"

mode=1
for(i 0 10) if(caption~v[i]) mode=0; break
out mode

for(i 0 10) v[i].all
free v
;______________________________

;version 2 (static str array)
type STR10 ~s[10]
STR10 vv
vv[0]= "open"
vv[1]= "Öffnen"
vv[2]= "Import"
vv[3]= "Anderes Symbol"
vv[4]= "Select Icon"

mode=1
for(i 0 10) if(caption~vv[i]) mode=0; break
out mode
;______________________________

;version 3
str windowlist="open[]Öffnen[]Import[]Anderes Symbol[]Select Icon" ;;or .getmacro("list") or .getfile("list.txt")
mode=1
if(wintest(hwnd windowlist "" "" 16|1|2)) mode=0
out mode


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)