DMGberg Posted October 20, 2005 Report Share Posted October 20, 2005 Is there a way to do this? I can't seem to figure it out. -- Dan Quote Link to comment Share on other sites More sharing options...
randallc Posted October 21, 2005 Report Share Posted October 21, 2005 Hi, Do you mean macro express? Options/ Preferences/ Appearance/ click on "show in system tray" Best, Randall Quote Link to comment Share on other sites More sharing options...
DMGberg Posted October 21, 2005 Author Report Share Posted October 21, 2005 No, other progs I use frequently but not continually. Task bar real estate is always at a premium. There is a "minimize" command and a "hide" command but no "minimize to tray." Quote Link to comment Share on other sites More sharing options...
randallc Posted October 21, 2005 Report Share Posted October 21, 2005 I suspect there would have to be a command built into each program ; eg MSoffice programs don't do that, do they? Best, Randall Quote Link to comment Share on other sites More sharing options...
jowensii Posted October 21, 2005 Report Share Posted October 21, 2005 If a program does not natively support minimizing to the system tray, you'll need a third party application. I did a Google search for "minimize program to system tray" and there are a lot of programs to choose from. You'd need to integrate one of these apps with ME. Quote Link to comment Share on other sites More sharing options...
DMGberg Posted October 21, 2005 Author Report Share Posted October 21, 2005 I have tried a couple of those programs and am using one now. None of them meet my needs so I just thought that I might be able to do it for 2 or 3 standard apps that I always use but don't want cluttering up the taskbar, using ME. I've looked into it more. It is more complicated than it would appear, many API calls. I might mess with it myself, maybe. Quote Link to comment Share on other sites More sharing options...
Ralph_Cal Posted October 27, 2005 Report Share Posted October 27, 2005 I just wrote a macro for myself that HIDES the current window, then wrote another macro that displays a list of the hidden windows from which you select the one you wish to display. (I set an arbitrary limit of 10 windows that I could hide). Wrote them during lunch today and tested them while working this afternoon. Seems to work pretty good. Forgot to bring them home with tonight but could post them later if your interested. Ralph Quote Link to comment Share on other sites More sharing options...
jowensii Posted October 28, 2005 Report Share Posted October 28, 2005 Yes, please post it. Quote Link to comment Share on other sites More sharing options...
Ralph_Cal Posted October 28, 2005 Report Share Posted October 28, 2005 This is not very eligant but seems to work. If anyone improves upon it, please let me know. Attached is the HIDE macro. Window_Hide.mex Quote Link to comment Share on other sites More sharing options...
Ralph_Cal Posted October 28, 2005 Report Share Posted October 28, 2005 This is not very eligant but seems to work. If anyone improves upon it, please let me know. Attached is the SHOW/UNHIDE macro. Window_Show_UnHide.mex Quote Link to comment Share on other sites More sharing options...
DMGberg Posted October 29, 2005 Author Report Share Posted October 29, 2005 Ralph, Thanks so much! You've got me started on what I need. I don't need them to be in the tray, I just don't want them cluttering the taskbar. When I get it tinkered, I'll post it back here. I've changed it so it won't "error" if you click "OK" without having selected a window. I'm working on having it default to the first "hidden" so one can keyboard down (if that control does that) as I don't like to use the mouse any more than I need to. I'll then do an autorun on start to have all my regulars open but hidden (Total Commander, Ecco, stuff like that) and can do defined hotkeys for each of my regulars. Again, thanks for pointing the way. All of those third party "minimize to tray" utilities I used were a little kinky and/or buggy. I even paid for one. Dan Quote Link to comment Share on other sites More sharing options...
DMGberg Posted October 29, 2005 Author Report Share Posted October 29, 2005 Also, apparently there are a # of places to keep the variables so they could be persistent. Quote Link to comment Share on other sites More sharing options...
Ralph_Cal Posted October 29, 2005 Report Share Posted October 29, 2005 Sounds great, looking forward to any improvements. I've notice a couple of bugs also, this was my first attempt at ME programming other than some quick one or two liners. Anyway, keep me posted. Ralph Quote Link to comment Share on other sites More sharing options...
Ralph_Cal Posted October 29, 2005 Report Share Posted October 29, 2005 Just discovered repeat until. :-) Changed the Hide macro to: <IFREG:2:2:HKEY_CURRENT_USER\Software\MacroExpress\><REGCREATE:HKEY_CURRENT_USER\Software\MacroExpress><ENDIF><TVAR2:01:06:><IVAR2:01:01:1><REP3:08:000005:000002:0001:0:01:11><IFREG:1:2:HKEY_CURRENT_USER\Software\MacroExpress\Hidden%N1%\><REGCREATE:HKEY_CURRENT_USER\Software\MacroExpress\Hidden%N1%><REGWSTR:1:HKEY_CURRENT_USER\Software\MacroExpress\Hidden%N1%><WHIDE:"CURRENT"><MRETURN><ENDIF><NMVAR:01:01:1:0000001:2:0000001><ENDREP> Now I'm going to do something similar to the Show/Activate macro ... but you get the idea. Quote Link to comment Share on other sites More sharing options...
DMGberg Posted October 29, 2005 Author Report Share Posted October 29, 2005 Here is a generic version of what I needed. It creates the registry key (more efficiently done by hand probly since it will be persist after you run the macro once), opens and activates the program if it isn't already, and toggles the show/hide state. <IFREG:2:2:HKEY_CURRENT_USER\Software\MANUFACTURER\SomeApp\State> <REGCREATE:HKEY_CURRENT_USER\Software\MANUFACTURER\SomeApp\State> <ENDIF> <IFOTH:14:1:SOMEAPP.EXE> <LAUNCHNO3:0:0112AppWindowTitle<LAUNCH:SOMEAPP.EXE2>< <DVAR2:01:01:1> <REGWDEC:1:HKEY_CURRENT_USER\Software\MANUFACTURER\SomeApp\State> <MSTOP> <ENDIF> <REGRDEC:1:HKEY_CURRENT_USER\Software\MANUFACTURER\SomeApp\State> <TVAR2:01:01:AppWindowTitle <IFVAR2:3:01:1:0>< WSHOW:%T1%> <ACTIVATE2:%T1%>< DVAR2:01:01:1> <REGWDEC:1:HKEY_CURRENT_USER\Software\MANUFACTURER\SomeApp\State> <ELSE> <WHIDE:%T1%> <DVAR2:01:01:0> <REGWDEC:1:HKEY_CURRENT_USER\Software\MANUFACTURER\SomeApp\State> <ENDIF> (Caution: does not run as pasted above because of 's etc) I could next create an uber-macro to create this macro for any app, create the registry key (more generically under the Macro Express key as you did), run an app picker dialogue, grab the window title, and set a hot-key. Would be fun but I got what I need now and it's getting late. Thanks again. toggle_app.mex Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.