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.

HowTo?: Same key does something different in different apps

If you have a question or need help, this is the place to be.
Post Reply
IceGothic
Posts: 33
Joined: Tue Oct 20, 2009 2:47 pm

HowTo?: Same key does something different in different apps

Post by IceGothic »

Here's what I want EventGhost to do:

If I press the '0' key on the keyboard when the "Zoom Player" window is focused, "Alt-Enter" keys are emulated. While if the "Winamp" window is focused, pressing the same '0' key will emulated the "Shift-O" keys.

Those actions and applications are examples here. The point is that I want to make the same key do something different in different applications, kind of a app-relative setup.

Is there a way to do this?

Thank you! :)
User avatar
jitterjames
Experienced User
Posts: 677
Joined: Thu Aug 13, 2009 4:36 pm
Location: Quebec, Canada
Contact:

Re: HowTo?: Same key does something different in different apps

Post by jitterjames »

yes!

use the plugin: "Task Create/Switch Events" to detect which program is in focus.

then use the "enable exclusive" action to set which part of the macro tree is active. Create a branch of macros for each application that you want to control.

everything you want is in the default tree that comes with the install. I am attaching it in case you lost it.
Attachments
Example.xml
(22.14 KiB) Downloaded 91 times
User avatar
jinxdone
Plugin Developer
Posts: 443
Joined: Tue Jan 02, 2007 4:08 pm

Re: HowTo?: Same key does something different in different apps

Post by jinxdone »

I might add this is one of the most frequently asked topics. Try searching for "Enable exclusive" and you'll surely find some similiar threads.

We really should add this information to the wiki..
IceGothic
Posts: 33
Joined: Tue Oct 20, 2009 2:47 pm

Re: HowTo?: Same key does something different in different apps

Post by IceGothic »

Oh Ok, I see light at the end of the tunnel! :) It's a little tricky!

Thanks guys
Post Reply