simulated key - move mouse and preform action

x64 Replacement/Alternative to Microsoft's IntelliMouse application.
Forum rules
Please read the forum rules before posting for the first time.
The more information you can provide, the quicker and more accurately someone can help.
NOTE: To reduce spam, new users can not post links, files or images until they have at least 4 posts.
Post Reply
lolitsfunny
New User
Posts: 2
Joined: Wed Jul 25, 2018 1:44 pm

simulated key - move mouse and preform action

Post 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!
User avatar
phil
Site Admin
Posts: 7660
Joined: Sun Apr 06, 2003 11:12 pm

Re: simulated key - move mouse and preform action

Post 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 :)
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
lolitsfunny
New User
Posts: 2
Joined: Wed Jul 25, 2018 1:44 pm

Re: simulated key - move mouse and preform action

Post 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.
User avatar
phil
Site Admin
Posts: 7660
Joined: Sun Apr 06, 2003 11:12 pm

Re: simulated key - move mouse and preform action

Post 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}-
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
Post Reply