开发者

Pass the events(key or touch) from Service to active application

开发者 https://www.devze.com 2023-03-17 02:57 出处:网络
I like to create service which will send the events to current active application like key up, key down, touch motion event, etc...

I like to create service which will send the events to current active application like key up, key down, touch motion event, etc... For example

  1. Service will run with some timer.
  2. Open browser and view some page
  3. After some time, browse开发者_Python百科r should move top to bottom automatically (ie events are passed from service to browser).

Q1. Is it possible? yes, how if no, why.

Thanks in advance.


Is it possible?

Fortunately, no.

if no, why

Security. Allowing Application A to force input events into Application B, -- outside of carefully controlled situations like GUI testing -- would open too many doors for malware to exploit.

0

精彩评论

暂无评论...
验证码 换一张
取 消