Application toggle

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
mebloscian
New User
Posts: 1
Joined: Mon Oct 22, 2018 10:47 am

Application toggle

Post by mebloscian »

Hello!
How to run batch script from xmouse? Yesterday I was trying to mimic the Magnify Toggle On/Off function, but without luck. So I've got some questions:
1. Will be Magnify toggle (as well as other actions) featured in tags so one can use it in scripts?
2. How this toggle actually works? Can I recreate it via script?
3. How to run batch scrips via xmouse?
4. Any plans making Linux version?

Cheers!
User avatar
phil
Site Admin
Posts: 7627
Joined: Sun Apr 06, 2003 11:12 pm

Re: Application toggle

Post by phil »

You can run batch files using the "run application" option which will ask you for the application (or batch file) to run.
You can also do this in simulated keystrokes using the {RUN:<app/batch>} tag.

The existing magnifier options effectively work by sending the WIN+ and WIN- keystrokes, so that can already be done with the tags {WIN}+ and {WIN}- but I think there is a little bit more to the turn magnifier on/off as I think that actually launches the process and kills the process (to turn off) (although that is going from hazy memory as I don't have the code in front of me!) - this may be doable via the {run} tag but killing the process is a little more tricky (not impossible to script in a batch file though).

No I won't personally be making a Linux version as XMBC relies on Windows APIs that are completely different on Linux, as would be the majority of the actions that XMBC can send!. XMBC uses the Windows mouse hook API and it is completely different on Linux, plus I have no experience developing at a low level for Linux at the moment so its not somewhere I can go comfortably and I have no spare time to start learning completely different environments at a low level. I'm a little surprised something does not already exist because I would have through that it should be easier on Linux to do something at driver level.
--[ 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