Click to See Complete Forum and Search --> : Selecting Closest Item in a QueFind List


Tony Trabucco
02-25-2005, 04:30 PM
Since I'm still having an issue selecting the first item in a QueFind list (Closest Airport, Closest Hospital, Closest Fast Food, etc.) I thought that I would cut/past the code here to see if any has any suggestions. The list appears OK within the FF macro, but I can't "tap" the first item and then "tap" the "Route to" button. Here goes:

ffscript=Closest Airport
;rename when done
appname=QueFind
pen=76,218,1;transport
pen=44,24,1;where
pen=44,24,1;near current
pen=55,36,1;what
pen=44,59,1;air trans
wait=3;wait for list to populate
pen=68,63,1;select top item in list
vg=0
pen=68,153,1;route to button

Any assistance is appreciated!

Thanks

T2

Q-Eye
02-25-2005, 04:43 PM
I don't see an "end" as the last line of the script. If there is no "line end" (like a carriage return) after the last actual line of the script, FastFinger won't execute the last instruction. Try adding a final "end" after the tap on the route button.

As in:

pen=68,153,1;route to button
end

Tony Trabucco
02-25-2005, 04:49 PM
Thanks Phil,

I think I finally figured it out -- appears to be a timing issue. If I set up a "wait" step of at least 5 (any less than that it doesn't appear to work) to give the unit time to begin populating the screen then it seems to work OK.

Thanks again!

T2