11-21-2012 10:47 AM
I am trying to scroll the browser when it is open on the users touch screen phone using code
EventInjector.TouchEvent moveEvents = new EventInjector.TouchEvent; moveEvents = new EventInjector.TouchEvent(TouchEvent.MOVE, xCo, yCo, -1, -1, -1); EventInjector.TouchEvent.injectSwipeGesture(xCoOri
g, yCoOrig, moveEvents);
This code works fine for scrolling if just in the menu or in other screens on the phone but if in the browser it doesn't scroll.
It doesn't seem like event injection has been blocked in browser application either because I can inject characters and I can make the cursor move very slowly using code..
tionEvent.NAVIGATION_MOVEMENT,0, 1, (int)Device.DEFAULT_DEVICE_TIME));
Thanks for any suggestions to get browser scrolling.
11-21-2012 11:32 AM
It seems I can get the browser to scroll using
tionEvent.NAVIGATION_MOVEMENT,0, 100, (int)Device.DEFAULT_DEVICE_TIME));
but this code is only good for when the browser is open/active - I have done some searching on this issue and it seems there is no way to tell when the browser is active so currently I'm still in need of help!