How to write an application to stimulate clicking events on Mobile
I'm finding a way to write a mobile 开发者_高级运维application that could stimulate clicking some buttons on the phone. Based on my check, it's not possible to do with J2ME. How about Symbian? Is it possible?
Yes, it is
TRawEvent ev1;
TRawEvent ev2;
ev1.Set(TRawEvent::EKeyDown, EStdKeyApplication0);
UserSvr::AddEvent(ev1);
User::After(10000);
ev2.Set(TRawEvent::EKeyUp, EStdKeyApplication0);
UserSvr::AddEvent(ev2);
Symbian has a User Emulator contributed by Orange that does just this.
精彩评论