Yup, anything from that example doesn't work -- period.

For the exact functions and parameters, look here:
http://groups.google.com/group/android-developers/msg/51f3c86cdb418387

On Oct 25, 6:48 pm, sdphil <[email protected]> wrote:
> I *finally* gotmonkeytesting to work from ascript.
>
> my test.txt file looks like this --
>
> ---- cut here ----
> start data >>
>
> DispatchPointer(5109520,5109520,0,230.75429,458.1814,0.20784314,0.06666667, 
> 0,0.0,0.0,65539,0)
>   DispatchKey(5113146,5113146,0,20,0,0,0,0)
> ---- cut here ----
>
> and my
>
> monkeycommand looks like this:
>
> monkey-v -v -v -f /sdcard/test.txt 1
>
> ----
>
> When I did that, it worked!
>
> Now those commands DispatchPointer and DispatchKey are pretty gnarly
> in terms of the number of arguments.
>
> I see 
> onhttp://android.git.kernel.org/?p=platform/development.git;a=blob;f=cm...
> there are simple commands like
>
> # Touch the android
> touch down 160 200
> touch up 160 200
> sleep 1000
>
> Which seem a lot easier and friendlier to me -- except that they don't
> work (at least on my Nexus One).
>
> If i have to use the more complicated commands (the ones with a
> zillion parameters), is there a way to automatically generate these
> based on actual user events?  I would love it if there was some kind
> of record function or something that could translate actual human UI
> events into events that could be fed into thescript.
>
> Any help here?
>
> tia.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to