OK, completely stuck now and any help gratefully received having spent 20 hours and every evening this week trying to solve this.
What I want to do is report the xpos and ypos of the current control (ie the one that has focus) to an outside application. I have a little bit of VB knowledge so I could probably eventually do what I want if I knew a Mediaportal API call to get this, or does Mediaportal import User32.dll for GUI functions, for instance could I use "GetFocus" or "ActiveControl" and then something else to put these values in variables within a VB script?
The purpose of all this is to resolve a mouse/remote control conflict I have and I will post the finished exe for general use once done. Many thanks

What I want to do is report the xpos and ypos of the current control (ie the one that has focus) to an outside application. I have a little bit of VB knowledge so I could probably eventually do what I want if I knew a Mediaportal API call to get this, or does Mediaportal import User32.dll for GUI functions, for instance could I use "GetFocus" or "ActiveControl" and then something else to put these values in variables within a VB script?
The purpose of all this is to resolve a mouse/remote control conflict I have and I will post the finished exe for general use once done. Many thanks