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
- Service will run with some timer.
- Open browser and view some page
- 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.
精彩评论