Page 1 of 1

Application toggle

Posted: Mon Oct 22, 2018 10:57 am
by mebloscian
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?


Re: Application toggle

Posted: Mon Oct 22, 2018 11:38 am
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.