08-28-2006, 09:24 AM
I have a window with 24 ids (5000-5023), how can i create a macro that clicks any of those id's is visible, the one that becomes avail first. i know i can do them individual each
but i want to bunch them up together to make it faster and not lose any items
if(IsWindowVisible(id(5000 "Free Items")))
opt waitcpu 0;but* id(5000 "Free Items")
if(IsWindowVisible(id(5001 "Free Items")))
opt waitcpu 0;but* id(5001 "Free Items")
if(IsWindowVisible(id(5002 "Free Items")))
opt waitcpu 0;but* id(5002 "Free Items")
if(IsWindowVisible(id(5003 "Free Items")))
opt waitcpu 0;but* id(5003 "Free Items")
amd so on
but i want to bunch them up together to make it faster and not lose any items