AutoHotkey Community

It is currently May 27th, 2012, 4:12 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 185 posts ]  Go to page Previous  1 ... 7, 8, 9, 10, 11, 12, 13  Next
Author Message
 Post subject: Something wrong?
PostPosted: March 24th, 2010, 8:07 pm 
I just downloaded the most recent one (1.7.7). Im feeling Min2Tray out, so sorry if im a newbie (im a newbie.). I used the boss key, put some windows to the tray, and then stealth mode. Did not change the stealth mode hotkey. Repressed the hotkey for SM, nothing happens... am i doing anything wrong?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 5th, 2010, 7:26 pm 
sorry for the late reply, but i got no ping from the forum ;-(

i don't think you are doing anything wrong. the StealthMode key just hides/unhides the tray icons created by Min2Tray. every other key assignment will still work the same way as always (i.e. BossKey).

cheers...
Junyx


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 5th, 2010, 7:28 pm 
Offline

Joined: July 11th, 2005, 10:13 pm
Posts: 108
Location: Germany
...the last post was indeed from me :)

again, cheers...
Junyx

_________________
C.R.E.A.M.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: recommendation
PostPosted: November 14th, 2010, 9:38 pm 
Offline

Joined: May 15th, 2010, 2:10 am
Posts: 2
I would like to say thank you. It's a great tool.

Please make it possible to restore (as in it is currently in a minimized state) program A, by running / executing another instance of program A.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 14th, 2010, 9:39 pm 
Offline

Joined: October 13th, 2009, 10:09 pm
Posts: 1389
I don't think this is easily possible, except when you are talking about running it through an AHK script.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: recommendation
PostPosted: November 15th, 2010, 1:44 am 
Offline

Joined: July 11th, 2005, 10:13 pm
Posts: 108
Location: Germany
peter733 wrote:
I would like to say thank you. It's a great tool.
Please make it possible to restore (as in it is currently in a minimized state) program A, by running / executing another instance of program A.


thanks for your appreciation!

currently, Min2Tray doesn't natively support a feature like AllTray for *nix provides.
but, as we are using a flexible scripting language with AutoHotkey, you can use the following 4-liner:

Code:
Run, notepad.exe, , Min UseErrorLevel, runPID
Sleep, 100
WinGet, winID, ID, ahk_pid %runPID%
Run, C:\Programs\Min2Tray\Min2Tray.exe %winID%, , UseErrorLevel


just save this file as min-notepad.ahk and enjoy.
substitute notepad.exe with your program and adjust the path to Min2Tray.exe accordingly.

with some more argument parsing this little script could start any program stated on the command line hidden and with a tray icon.
hint: look at the Min2Tray.ahk script for line 84 ff :-)

Junyx

_________________
C.R.E.A.M.


Report this post
Top
 Profile  
Reply with quote  
PostPosted: April 11th, 2011, 5:40 pm 
Offline

Joined: January 7th, 2010, 1:57 pm
Posts: 4
Hi

It is slightly off topic, but relevant.
I have knocked together a very simple script for launching and controlling single app with one hotkey. In this example it is OneNote, but I use multiple scripts for different apps:

Code:
;-----OneNote control----------------------------------------
#n::
IfWinExist, Microsoft OneNote,,,2010
IfWinActive, Microsoft OneNote
{
WinMinimize
WinHide Microsoft OneNote
return
}
else
{
Winshow Microsoft OneNote
WinActivate
WinMaximize
return
}
else
{
Run OneNote
WinMaximize, Microsoft OneNote
return
}
return


It works just fine (despite being crude:)) but I would prefer to see an icon in system tray when OneNote is running and hidden - by default hidden windows are "invisible".
Can it be done in minimalistic way?
Code:


Report this post
Top
 Profile  
Reply with quote  
PostPosted: April 11th, 2011, 6:27 pm 
Offline

Joined: July 11th, 2005, 10:13 pm
Posts: 108
Location: Germany
Treetopped wrote:
It works just fine (despite being crude:)) but I would prefer to see an icon in system tray when OneNote is running and hidden - by default hidden windows are "invisible".
Can it be done in minimalistic way?

well, Min2Tray creates systray icons for hidden windows by spawning one instance of itself per hidden window. therefore we can just use
Code:
Menu, TRAY, Icon, %file%, %number%, 1

per instance to change/show an icon per hidden window. this is the method natively supported by AutoHotkey.

but i know there exist some sort of library floating around this forum that enables AHK to show arbitrary icons in the systray. you just have to have one instance of AHK running (here: your script that hides away the program) and this instance may spawn multiple systray icons. i just cannot remember the name of the author/library...

...searching is your friend: http://www.autohotkey.com/forum/viewtopic.php?t=26042 - [module] Tray 2.1 by majkinetor.

happy hacking!
Junyx

_________________
C.R.E.A.M.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Startup Minimize List
PostPosted: July 13th, 2011, 3:26 am 
Offline

Joined: July 13th, 2011, 3:22 am
Posts: 1
This looks like a very useful program-thanks
How do I add items to the Startup Minimize List? When I open it from the menu it is empty and I can find no way to add the programs I want to statup minimized at logon.


Report this post
Top
 Profile  
Reply with quote  
PostPosted: July 14th, 2011, 7:51 am 
Offline

Joined: July 11th, 2005, 10:13 pm
Posts: 108
Location: Germany
99freddo wrote:
How do I add items to the Startup Minimize List?

open Min2Tray main preferences: WIN+CTRL+ALT+P.
check: StartupMinimize (poss. making some changes to timespan or intervall if needed).

start the program that should be on StartupMinimize list.
minimize it to tray with Min2Tray.
you should see an icon for that program in the system tray. right click the icon, then Preferences.
check "Window is on StartupMinimize list".

now there's one entry in the list.
you may edit it an add a window title or window ID to reduce the focus of StartupMinimize to special windows of that particular program.
e.g. "Google - Opera" to just minimize opera windows with this title if you have opera.exe on the list.

Junyx

_________________
C.R.E.A.M.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 16th, 2011, 4:56 pm 
Offline

Joined: February 12th, 2010, 10:27 pm
Posts: 12
I just don't find the documentation - where is it?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 16th, 2011, 5:48 pm 
Offline

Joined: July 11th, 2005, 10:13 pm
Posts: 108
Location: Germany
franc wrote:
I just don't find the documentation - where is it?

well, sorry, man - there's no such thing as a documentation.
i thought the program would be self explanatory :lol:

no, really! you may follow the release notes to get a grasp of what's under the hood of Min2Tray.
this program was meant to be a little tool just for my needs, so i never wrote a documentation...

Junyx

_________________
C.R.E.A.M.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 16th, 2011, 6:26 pm 
Offline

Joined: February 12th, 2010, 10:27 pm
Posts: 12
e.g. I minimize a program (totalcmd) with the middle mouse button and hush! it disappears. No little icon in the systray, only with procexplorer I can bring it to the front.
Is this a bug or my corky system?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 16th, 2011, 10:34 pm 
Offline

Joined: July 11th, 2005, 10:13 pm
Posts: 108
Location: Germany
franc wrote:
it disappears. No little icon in the systray [...]
Is this a bug or my corky system?

i just installed TotalCommander to test it (to c:\totalcmd).
if i minimze tc's window, an icon will appear in the systray!
the icon does however not look like tc's, but like the one of Min2Tray.

this is due to the fact that M2T searches certain paths for the exe-name of the program minimized.
but tc is NOT in the search path (c:\windows;c:\programs). so the generic icon will be used.

first time search will also take some time, depending on the amount of programs in the search path!
so be patient and give M2T some time to show the tray-icon.

after you see the tray-icon for tc you may set a custom icon via its preferences.
this icon may come from "c:\totalcmd\totalcmd.exe" or any other icon/exe/dll-file you like.

Junyx

_________________
C.R.E.A.M.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 17th, 2011, 12:04 am 
Offline

Joined: February 12th, 2010, 10:27 pm
Posts: 12
Junyx wrote:
...so be patient and give M2T some time to show the tray-icon....

How much time?
More then 15 minutes?
I still have a second instance of Min2Tray in my processes, but I am not sure if some day there will be an icon for totalcmd...
I have totalcmd in my path, by the way.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 185 posts ]  Go to page Previous  1 ... 7, 8, 9, 10, 11, 12, 13  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Stigg and 15 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group