Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Can an Event consist of app Close or Minimize?

  1. #1
    Join Date
    Oct 2003
    Posts
    32

    Default 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?
    CJSnet

  2. #2
    Join Date
    Dec 2001
    Posts
    11,560

    Default

    Look at the taskcreate and taskswitch plugins

  3. #3
    Join Date
    Oct 2003
    Posts
    32

    Default

    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.
    CJSnet

  4. #4
    Join Date
    Dec 2001
    Posts
    11,560

    Default

    Should be application specific....

    Maybe someoneelse has an idea...

  5. #5
    Join Date
    Oct 2002
    Location
    Germany
    Posts
    586

    Default

    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.
    Bitmonster

  6. #6
    Join Date
    Oct 2003
    Posts
    32

    Default

    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!
    CJSnet

  7. #7
    Join Date
    Oct 2002
    Location
    Germany
    Posts
    586

    Default

    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.
    Bitmonster

  8. #8
    Join Date
    Oct 2003
    Posts
    32

    Default

    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
    CJSnet

  9. #9
    Join Date
    Oct 2002
    Location
    Germany
    Posts
    586

    Default

    Quote Originally Posted by CJSnet
    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
    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.
    Bitmonster

  10. #10
    Join Date
    Oct 2003
    Posts
    32

    Default

    TaskSwitch aside, is there any other way to use girder to 'minimize all' windows? (And maximize all later)
    CJSnet

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •