I've tried to search for information on how to do what I'm trying to do on the forum but I think part of the problem is I'm not sure what the proper search terms are. I'm kind of new to this app. Been using it for a while but in a very simple way. Just intercepting keyboard and or MCE events and sending them on to the system.
What I am trying to do is make those events exclusive to only affecting one application. I'm not sure if it can be done or where to start.
Any help would be appreciated. Thanks.
Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
Help with making keyboard events exclusive to one applicatio
Re: Help with making keyboard events exclusive to one applicatio
Use the task plugin and its events to enable a folder with commands exklusivly.
Re: Help with making keyboard events exclusive to one applicatio
Thanks but the help I need is probaly on a little more basic level. I assume you mean the keyboard task.
What I don't understand is how to enable a folder exclusively. I've seen references to it but have not been able to find a description of how to do it. Also can not find anything within Eventghost to enable it.
What I don't understand is how to enable a folder exclusively. I've seen references to it but have not been able to find a description of how to do it. Also can not find anything within Eventghost to enable it.
Re: Help with making keyboard events exclusive to one applicatio
Use the 'Enable exclusive' action. It will enable only the selected folder and disable everything else that is on the same folder as the target. Usually people make a 'context folder' in which they put more folders each containing stuff they want to switch between with the enable exclusive action.bamoore01 wrote:What I don't understand is how to enable a folder exclusively. I've seen references to it but have not been able to find a description of how to do it. Also can not find anything within Eventghost to enable it.
Re: Help with making keyboard events exclusive to one applicatio
Thanks. With your help and a few examples out on the web (GBPR especially) I got it to work. Problem is that I think I mis understood how it should work.
Now when I press a key (we'll just use the z key remapped to the down arrow for GBPVR.exe as an example), the z key always gets directed as a down arrow to GBPVR whether GBPVR has focus or not. If it is not running, then nothing happens.
I guess what I was looking for was that the z key be redirected as a down arrow to GBPVR only if it has focus. If it does not have focus then the entire translation and redirection be ignored. As an example, if notepad has focus, a z key shows up.
So the question is, can that be done or am I just dreaming.
Thanks
Now when I press a key (we'll just use the z key remapped to the down arrow for GBPVR.exe as an example), the z key always gets directed as a down arrow to GBPVR whether GBPVR has focus or not. If it is not running, then nothing happens.
I guess what I was looking for was that the z key be redirected as a down arrow to GBPVR only if it has focus. If it does not have focus then the entire translation and redirection be ignored. As an example, if notepad has focus, a z key shows up.
So the question is, can that be done or am I just dreaming.
Thanks
Re: Help with making keyboard events exclusive to one applicatio
That would be your second enable exclusive where you map the remote to do something entiely different,
The task plugin will tell you which application is in focus and you can use that to trigger your enable exclusive macros.
The task plugin will tell you which application is in focus and you can use that to trigger your enable exclusive macros.
Re: Help with making keyboard events exclusive to one applicatio
I was kinda keeping up untill now but you lost me on that last one. Some more detail on what you me would sure help.
Re: Help with making keyboard events exclusive to one applicatio
EDIT: Nevermind you are dealing with a keyboard and I didn't realize that, Windows treats keyboards differently. This is how to use enable exclusives but it would work with an actual remote control emulating a keyboard not an actual keyboard. I suggest you add a remote if you can, if you already have the MCE IR reciever any old remote will do. Of course some are better then others but since you are starting from scratch you can use any. Then just leave the keyboard for whats it's good at, typing.
Okay in your config make a folder called localapps under context folder provided.
Context/localapps/
Inside make a folder for each application you want to control
Context/localapps/Winamp/
Context/localapps/GBPVR/
Context/localapps/KeyboardMouse/
Inside each of those folders you store all the macros related to that application, every desireable function should have a macro.
so:
Context/localapps/Winamp/
Up
Down
Left
Right
OK
Switch to KeyboardMouse
...
Context/localapps/GBPVR/
Up
Down
Left
Right
OK
Switch to KeyboardMouse
...
Context/localapps/KeyboardMouse/
Up
Down
Left
Right
OK
...
Then add your events to trigger them.
now you will need macros to switch between them so create one for each you wish to enable/disable in the context folder
enable exclusive Winamp
enable exclusive GBPVR
enable exclusive KeyboardMouse
Winamp and GBPVR macros will be triggered from the Tasks plugin events like
Task.Activated.Winamp and Task.Activated.GBPVR
KeyboardMouse exclusives will be triggered by things like
Task.Deactivated.Winamp, Task.Deactivated.GBPVR, Task.Activated.Desktop, Main.Startup
Then in the autostart section of your config add action "trigger event" named startup.
Now whenever Winamp is in focus keys will be sent to it, whenever GBPVR is in focus keys will be sent to it and whenever you startup, siting at the desktop or have just closed either winamp or gbpvr your remote can emulate a mouse with directional arrows and a keyboard cell phone txt message style if you so choose. If you need more applications then you just duplate what you did for Winamp and GBPVR.
!
You should also make a folder inside context/ for all your global stuff that can never be disabled, stuff like system volume, system mute, reboot, shutdown that kinda stuff. This allows somewhat like a punchthrough effect does for normal universal remotes. This is because they are located ABOVE localapps folder which is where all the stuff that is being enabled/disabled takes place.
Enable exclusive is like a switch, whatever is in the same folder (localapps/ in my example) that is not enabled by the enable exclusive action is automatically disabled. It's a 1 folder at a time kinda thing.
Okay in your config make a folder called localapps under context folder provided.
Context/localapps/
Inside make a folder for each application you want to control
Context/localapps/Winamp/
Context/localapps/GBPVR/
Context/localapps/KeyboardMouse/
Inside each of those folders you store all the macros related to that application, every desireable function should have a macro.
so:
Context/localapps/Winamp/
Up
Down
Left
Right
OK
Switch to KeyboardMouse
...
Context/localapps/GBPVR/
Up
Down
Left
Right
OK
Switch to KeyboardMouse
...
Context/localapps/KeyboardMouse/
Up
Down
Left
Right
OK
...
Then add your events to trigger them.
now you will need macros to switch between them so create one for each you wish to enable/disable in the context folder
enable exclusive Winamp
enable exclusive GBPVR
enable exclusive KeyboardMouse
Winamp and GBPVR macros will be triggered from the Tasks plugin events like
Task.Activated.Winamp and Task.Activated.GBPVR
KeyboardMouse exclusives will be triggered by things like
Task.Deactivated.Winamp, Task.Deactivated.GBPVR, Task.Activated.Desktop, Main.Startup
Then in the autostart section of your config add action "trigger event" named startup.
Now whenever Winamp is in focus keys will be sent to it, whenever GBPVR is in focus keys will be sent to it and whenever you startup, siting at the desktop or have just closed either winamp or gbpvr your remote can emulate a mouse with directional arrows and a keyboard cell phone txt message style if you so choose. If you need more applications then you just duplate what you did for Winamp and GBPVR.
!
You should also make a folder inside context/ for all your global stuff that can never be disabled, stuff like system volume, system mute, reboot, shutdown that kinda stuff. This allows somewhat like a punchthrough effect does for normal universal remotes. This is because they are located ABOVE localapps folder which is where all the stuff that is being enabled/disabled takes place.
Enable exclusive is like a switch, whatever is in the same folder (localapps/ in my example) that is not enabled by the enable exclusive action is automatically disabled. It's a 1 folder at a time kinda thing.
Re: Help with making keyboard events exclusive to one applicatio
Thanks. I'll give this a try over the next few days.