[android-developers] About Monkey Script

2010-06-22 Thread mlc
this is my Monkeyscript
type= point
count= 0
speed= 1
start data 

captureDispatchPointer(5109520,5109520,0,230,358,0,0,0,0,0,0,0);
captureDispatchPointer(5109521,5109521,1,230,358,0,0,0,0,0,0,0);

captureDispatchKey(5113146,5113146,0,4,0,0,0,0);
captureDispatchKey(5113146,5113146,1,4,0,0,0,0);

--
I want give a sleep between the second sentence and the third one, but
i don't konw the grammar format.
Is the grammar format is UserWait(5000)?

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


[android-developers] About Monkey Script

2010-06-21 Thread Prue Meng
I want point a folder,but the scrip only have the hold-press,
captureDispatchPointer(5109520,5109520,0,230,358,0,0,0,0,0,0,0),

DispatchKey(downTime, //@param: The time (in {...@link 
android.os.SystemClock#uptimeMillis}) at which this key code originally 
went down.毫秒
eventTime, //at which this event happened.   
action,//Action code: either {...@link #ACTION_DOWN=0}, {...@link 
#ACTION_UP=1}, or {...@link #ACTION_MULTIPLE=2}.
code,//The key code.  
repeat, //A repeat count for down events ( 0 if this is after the initial 
down) or event count for multiple events.
metaState, //Flags indicating which meta keys are currently pressed.
device, //The device ID that generated the key event.
scancode) //Raw device scan code of the event.

anybody help me,change which param can do that

thank you

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