Page 1 of 1

simulated key - move mouse and preform action

Posted: Fri Jul 27, 2018 12:31 pm
by lolitsfunny
XMBC Version: 2.17
Windows Version: 10
Mouse Information (brand/model): -
Computer Information: -
Did the problem occur after an upgrade of XMBC or Windows?: -
How long have you used XMBC?: few days
What language and keyboard layout do you use in Windows?:

Clear description of the problem:

I want to create a script that when a button is pressed, it moves the cursor to {x,y} AND preform zoom in/out.

I don't know how to to integrate both of the features :/

Thanks!

Re: simulated key - move mouse and preform action

Posted: Fri Jul 27, 2018 1:46 pm
by phil
Urm, assuming zoom is doable with the CTRL+scroll wheel then maybe this...
{MSET:x,y}{CTRL}{MWUP}
{MSET:x,y}{CTRL}{MWDN}

Or if zoom is done by keys, then perhaps
{MSET:x,y}{LMB}+
{MSET:x,y}{LMB}-

In this case, the LMB is there so set the active window under the x,y point and assumes the + & - keys zoom.

If none of that works, give us more of a clue how you zoom (or an example application) and maybe we can come up with something that works :)

Re: simulated key - move mouse and preform action

Posted: Fri Jul 27, 2018 7:54 pm
by lolitsfunny
the zoom is done via windows magnifier (the function is called "magnifier zoom in" (\out)... i'll try to program it to other buttons and change the current one.
How ever, it will be smoother if i could program it all together.

Re: simulated key - move mouse and preform action

Posted: Fri Jul 27, 2018 8:09 pm
by phil
Ohhh that sort of zoom! Ok, well actually the magnifier funciton just sends {WIN}+ and {win}- behind the scenes if I recall...
So try

{MSET:x,y}{LWIN}+
and
{MSET:x,y}{LWIN}-