E_PRIVILEGE_DENIED result for GenerateKeyEvent() in Thread
E_PRIVILEGE_DENIED result for GenerateKeyEvent() in Thread
BY 29 Nov 2013Native Application Development
Hi,
Created a Service app to simulate keys. Override the Thread class to MyThread class to simulate keys.
Code Snippet:
Object*
MyThread::Run(void)
{
AppLog("MyThread :: Object* Run(void)");
Tizen::Ui::KeyCode keyToSimulate = Tizen::Ui::KEY_A;
result r = Tizen::Ui::SystemUtil::GenerateKeyEvent(Tizen::Ui::KEY_EVENT_TYPE_PRESSED, keyToSimulate);
AppLog("KEY_EVENT_TYPE_PRESSED [%d] and result :: %s", keyToSimulate, GetErrorMessage(r));
r = Tizen::Ui::SystemUtil::GenerateKeyEvent(Tizen::Ui::KEY_EVENT_TYPE_RELEASED, keyToSimulate);
AppLog("KEY_EVENT_TYPE_RELEASED [%d] and result :: %s", keyToSimulate, GetErrorMessage(r));
return null;
}
In OnAppInitialized() created a Thread instance and started as below:
mpMyThread = new MyThread;
mpMyThread->Construct();
mpMyThread->Start();
result of GenerateKeyEvent shows E_PRIVILEGE_DENIED. My question here does MyThread class has the privileges same as parent? If not how can i send events in MyThread class?
E_PRIVILEGE_DENIED result for GenerateKeyEvent() in Thread
Hi,
Created a Service app to simulate keys. Override the Thread class to MyThread class to simulate keys.
Code Snippet:
In OnAppInitialized() created a Thread instance and started as below:
result of GenerateKeyEvent shows E_PRIVILEGE_DENIED. My question here does MyThread class has the privileges same as parent? If not how can i send events in MyThread class?
Thanks,
Anil
BY
16 Apr 2025
Tizen Studio
BY
04 Nov 2024
Tizen Studio
BY
02 Apr 2024
Tizen Studio