October 25th, 2003, 02:47 PM
Can an Event consist of app Close or Minimize?
I'd like to have a keyboard command execute when a specific application (MCE) is minimized or closed completely. However LearnEvent doesn't seem to recognize these sort of events. Any ideas?
October 25th, 2003, 03:54 PM
Look at the taskcreate and taskswitch plugins
October 25th, 2003, 04:47 PM
Cool ok that kinda works. I set it to perform a keyboard shortcut (to change desktop resolution) each time MCE is closed or minimized. (I had previously set on to change it each time it was opened, so this one is to change it back again.)
Problem is, it responds to ANY program being minimized or closed! The Event is correctly recorded as ehshell.exe and I have to tick Invert for it to work, so why is it actioning it when I minimize any other application too? I want it to happen only with a specific app.
October 25th, 2003, 09:47 PM
Should be application specific....
Maybe someoneelse has an idea...
October 25th, 2003, 11:41 PM
These plugins won't give you a special "minimize" event. TaskSwitch will only give you an event everytime a task gets focus. So if you minimize a window you actually give the program behind it focus and the plugin will give you the name of the task.
This might be the problem you encounter, as your wanted "ehshell.exe" gets focus and your command gets triggered.
It might be possible to get arround this problem with a "Girder/Window Exists" branch action that is triggered from all TaskSwitch events.
The TaskCreate events like "ehshell.exe [CLOSE]" should work as wanted, but only for a complete close of the program.
October 26th, 2003, 04:32 AM
Okay, getting there. I now have just MCE Close working with Taskswitch as desired.
As for MCE Minimize, can you help me as to how to get the Girder>Window Exists to interoperate with Taskswitch. I guess the idea is that the MCE Minimize Taskswitch will only work if the MCE window exists? I'm not clear how to do that. Have tried Help. Thanks!
October 26th, 2003, 08:21 AM
Yes, you got the point.
The idea is to create a "window exists" command with the MCE window as target. This command should be triggered from every TaskSwitch event (so you have to learn it to MCE and invert it actually)
On the bottom of this Girder action you find two browse buttons. Here you can branch to two different commands if the window exists or not (some kind of if-then-else clause). So you let one point to your desired command and the other to nirvana.
November 7th, 2003, 03:00 PM
Please excuse my ignorance, I really don't know what I'm supposed to do :$
Basically this is all I want:
When MCE is maximized, execute keyboard shortcut Alt+1
When MCE is not maxmized (e.g. windowed, minimized or closed), execute keyboard shortcut Alt+2
This is to allow nView to switch resolutions.
Please, I'm sorry to ask, but can you talk me through exactly what to do to enable this. I've fiddled with all you suggest above, but no good
November 7th, 2003, 03:49 PM
Sorry, this is not possible this way. Girder can't notice the change between windowed and maximized, because TaskSwitch will not create an event for this.
Originally Posted by CJSnet
November 7th, 2003, 03:52 PM
TaskSwitch aside, is there any other way to use girder to 'minimize all' windows? (And maximize all later)