Is it possible to send directions to another program instead of just simulating keypr
Im new here so please bear with me..
Is it possible to send directions to another program in some way, using real c
(or java)? Something similar to using sendkey in c#, but by giving directions to the program without simulating keypresses. I've made programs(in java) before that were able to open programs and in which it was possible to click buttons by using mousemacros clicking in specified coordinates. It was also possible to simulate keypresses. Now to the point..
Now I'd like to go deeper, by learning how to send the right directions directly to the program, without simulating for example a user mouse click on a button by using mousemacros. This because it will not work if the program isn't at the right place when the mousemacro is clicking in the specified coordinate. If I could send the directions directly, then it's not necessary to know the exact coordinate of the button. How can i achieve this and from where would I get the right directions?
If it's not possible to send the directions, is it possible to get the button's coordinates from some register in windows, so one wouldn't have to scan through the screen?
I've been searching for a long time already but I couldn't find any useful about this subject.
Can anyone please tell me how to achieve this or at least show where I can learn more? Links to articles about this is also useful.