11-30-2012 05:48 AM
I have a requirement to vertically scroll down 10 times programmatically from my app. Can anybody help me doing this. Thanks.
Solved! Go to Solution.
11-30-2012 05:50 AM
11-30-2012 05:57 AM - edited 11-30-2012 06:07 AM
yes i want to inject key press for scrolling 10 times in blackberry. Can we do this? Please show me how. Thanks.
11-30-2012 06:10 AM
This seems a bit vague, 10 times what? 10 screens? 10 swipes of the trackpad?
If this is your applicatino how about setVerticalScroll?
11-30-2012 06:14 AM - edited 11-30-2012 06:19 AM
I want 10 swipes of the trackpad and this is not my application. I have this requirement. I got to know that we can enject Key presses programmatically. How can we do this for 10 swipes of the trackpad? Thanks a lot.
11-30-2012 07:01 AM
11-30-2012 07:27 AM
You can try and add a NullField and set focus to it.
E.
11-30-2012 08:07 AM - edited 11-30-2012 11:28 PM
Ok thanks a lot for your reply simon, will try and then tell you.
12-01-2012 01:51 AM
I got it with the code below:
for(int i=0;i<10;i++)
EventInjector.invokeEvent(new EventInjector.TrackwheelEvent(EventInjector.Trackw heelEvent.THUMB_ROLL_DOWN,1,KeypadListener.STATUS_ ALT));
Thanks a lot everyone.