since you didn't say what kind of option it is or what variable result is stored in i can only give you a general example using a list dialog
show your code next time and we can give you better help
to show code in qm forum read here
http://www.quickmacros.com/forum/showthread.php?tid=786
with Error if not found unchecked in Find Image dialog
Function SelectAndFindImageExample
show your code next time and we can give you better help
to show code in qm forum read here
http://www.quickmacros.com/forum/showthread.php?tid=786
with Error if not found unchecked in Find Image dialog
Function SelectAndFindImageExample
ARRAY(str) a="image1[]image2[]image3"
str s=a
int i=ListDialog(s); if(i=0) ret
sel i
,case 1
,out a[i-1]
,;;-- if image1 is selected
,if(scan("image:hB853ABA3" 0 0 1|16))
,,lef;;if you want to left click it
,else
,,out "image not found"
,
,case 2
,out a[i-1]
,;;-- if image2 is selected
,if(scan("image:h8175EBE3" 0 0 1|16))
,,lef
,else
,,out "image not found"
,case 3
,out a[i-1]
,;;-- if image3 is selected
,if(scan("image:h1751A370" 0 0 1|16))
,,lef
,else
,,out "image not found"