_LIT(KMyExeFileCmd,"\'\' 0"); RProcess proc; User::LeaveIfError(proc.Create(KMyExeFile,KMyExeFileCmd)); proc.Resume(); proc.Close();
自动重启的代码--三版 MR和FP1好用
TRawEvent iRawEvent; iRawEvent.Set(TRawEvent::EKeyDown,0xA6);//e61捕捉到的是166就是xA6,在e32keys.h对应EStdKeyDevice2UserSvr::AddEvent(iRawEvent);iRawEvent.Set(TRawEvent::EKeyRepeat,0xA6);UserSvr::AddEvent(iRawEvent);关机代码
真机测试。。好用
需要SWevent的能力