.
.
I have an object called "my_target" which contains the ID of my human target.
Actually to cast on it, I'm using
uo.waittobjecttype("target")
uo.cast("xxx")
But BEFORE i wanna cast, and THEN eventually drop the target on my enemy.
the only, and not so good way, I found is this: using targetnext of my client

while CONDITION
new=uo.getserial("laststatus")
if new==my_target then
goto x
CONDITION=0
else
uo.press(49)#TARGETNEXT_client
endif
wait(100)
wend
x:
uo.press(48 ) #LASTTARGET_client