c# - How to control UI of external application using WPF without knowing its structure and without moving the mouse? -


imagine there application has window fixed size, controls remain @ known places (yes, there such applications). imagine said application's window quite small , unusable on touch-screen device. idea build simple wpf ui, maps controls of external application touch-friendly ui.

(and not gaming, rather making music. want use small external application live on stage...)

i found whole bunch of ways of controlling external applications, of them getting handle external application's window, getting handle button, performing mouse click on that, in answers provided following questions:

other answers propose move mouse desired location , perform mouse events:

all of these approaches have drawbacks: need know target applications's structure. use deprecated api methods. move cursor of mouse external application.

so here question: how can perform mouse actions on external applications relative external application's window without moving mouse pointer?

ideally there no need external application's window on top, meaning ideally wpf ui fullscreen one.


nb: commenters suggested using ui automation task. tried walk ui tree of external application using inspect, yielded unsatisfying results:

enter image description here


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -