AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Min2Tray v1.7.7 - minimize window to tray & much more!
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Demokos



Joined: 28 Dec 2005
Posts: 84

PostPosted: Wed Sep 06, 2006 10:56 pm    Post subject: Reply with quote

With :
Code:
  TakeIt = [%A_Language%]
  FileAppend, %TakeIt%, W:\Min2Tray Result.txt
I got : [040C].
So I tested with :
Code:
   Else If ( tmp = 0C ) ; = French (040c, 080c, 0c0c, 100c, 140c, 180c ...)
      h_Language = fr_FR
so with "0C" and not "0c" and ??? English interface... One more specificity of the froggies, or my PC is very sensitive ?

P.S : I found the solution : it works with :
Code:
Else If  tmp = 0C
or with :
Code:
Else If (tmp = "0C")
I remember now I had a similar problem with my Mr Clean script... Solved
Back to top
View user's profile Send private message
Junyx



Joined: 11 Jul 2005
Posts: 84
Location: Germany

PostPosted: Wed Sep 06, 2006 11:08 pm    Post subject: Reply with quote

well, i was first Razz (see my last post)

but nevertheless -- good work, thx!
_________________
C.R.E.A.M.
Back to top
View user's profile Send private message
Demokos



Joined: 28 Dec 2005
Posts: 84

PostPosted: Wed Sep 06, 2006 11:14 pm    Post subject: Reply with quote

As we say in France, "Les grands esprits se rencontrent" (The great minds meet) Very Happy
Back to top
View user's profile Send private message
Junyx



Joined: 11 Jul 2005
Posts: 84
Location: Germany

PostPosted: Thu Sep 07, 2006 6:24 am    Post subject: Reply with quote

Demokos wrote:
As we say in France, "Les grands esprits se rencontrent" (The great minds meet) Very Happy

well, there is a less gentle saying in german: "Zwei Dumme - ein Gedanke." (two stupid men - one thought/idea.) Cool
_________________
C.R.E.A.M.
Back to top
View user's profile Send private message
Demokos as guest
Guest





PostPosted: Thu Sep 07, 2006 8:17 am    Post subject: Reply with quote

Junyx wrote:
"Zwei Dumme - ein Gedanke." (two stupid men - one thought/idea.) Cool
So the meaning is the same...
Back to top
Junyx



Joined: 11 Jul 2005
Posts: 84
Location: Germany

PostPosted: Thu Sep 07, 2006 8:24 pm    Post subject: Reply with quote

Demokos wrote:
An other idea for the bad ones !!! Can you add the possibility to activate the Media_Stop or Media_Play_Pause keys (not for me of course, just for my colleagues !!!!) when the BossKey is activated, to stop the music when to Boss comes !!!

well, the skeleton is finished. in my current 1.7.2.alpha you can trigger various events when using BossKey, hiding a window, closing a window or un-hiding a window:

- send key strokes (with this you could trigger the "media keys" if you know their scancodes, AHK helps)
- run programs or scripts
- show messages
- play sounds (waves)
- mute/un-mute/toggle mute of master volume (this is what i use at work Razz )

if you have any suggestions for more events to be triggered, you could post your wishes here.

the only drawback ATM is, that there is NO gui to enable everyday users to configure the stuff. right now one has to digg into the registry to set things up.
i'm thinking about a way to do a listview gui to set stuff up, but this takes time (gui stuff is the most complicated IMHO - many bugs to be squashed there).

so long...
Junyx
_________________
C.R.E.A.M.
Back to top
View user's profile Send private message
Demokos



Joined: 28 Dec 2005
Posts: 84

PostPosted: Fri Sep 08, 2006 7:44 am    Post subject: Reply with quote

An other proposition : to have a list of windows to minimize in the tray at startup. (probably that means to be able to run min2tray frist in the startup list...)
Back to top
View user's profile Send private message
Junyx



Joined: 11 Jul 2005
Posts: 84
Location: Germany

PostPosted: Fri Sep 08, 2006 2:41 pm    Post subject: Reply with quote

you mean: Min2Tray starts up, scans for windows (title, class) and hides them away immediately without user-interaction?
it wolud be possible to implement this, but what for?
do you have a situation ITW where this is useful? i can't seem to think of one...
_________________
C.R.E.A.M.
Back to top
View user's profile Send private message
Demokos



Joined: 28 Dec 2005
Posts: 84

PostPosted: Fri Sep 08, 2006 4:55 pm    Post subject: Reply with quote

Junyx wrote:
you mean: Min2Tray starts up, scans for windows (title, class) and hides them away immediately without user-interaction?

Yes indeed !!!
I was thinking in this case to something specific. I'm used to use the winXP magnifier, because it is usefull when I am tired !!!! When it lauch at the start the PC, I must minimize it's setup window manually (it isn't done automatically), and with min2tray as I don't want it to be in the Alt-Tab menu.
So it's for a very specific and personnal need that I ask for !!! But may be others can find this feature usefull, I don't know.
If you don't want to do it, it is absolutely not a problem. It's just a matter of confort for me !!!!!
Back to top
View user's profile Send private message
Junyx



Joined: 11 Jul 2005
Posts: 84
Location: Germany

PostPosted: Sun Sep 10, 2006 10:24 pm    Post subject: Reply with quote

hmm, have to think about it. if it is easily doable, i will include it.
but you will certainly have to start Min2Tray after the magnifier - how you manage to do this is up to you Rolling Eyes
_________________
C.R.E.A.M.
Back to top
View user's profile Send private message
Demokos as guest
Guest





PostPosted: Mon Sep 11, 2006 6:01 am    Post subject: Reply with quote

Junyx wrote:
hmm, have to think about it. if it is easily doable, i will include it.
Thanks a lot.
Junyx wrote:
but you will certainly have to start Min2Tray after the magnifier - how you manage to do this is up to you Rolling Eyes
I think it isn't usefull, as the problem can be solved (in my mind) with a timer procedure which watch for a (list of) window(s) to minimize to tray with the WinExist() function (and which is stopped once all the windows in the list are minimized). I think that the delay isn't really important when the PC start, so it can be 1 to 5 seconds.
Back to top
owilsky



Joined: 08 Dec 2005
Posts: 9

PostPosted: Mon Feb 12, 2007 6:31 pm    Post subject: Reply with quote

I also like that idea. I would like to be able to run the script with an command line argument (e.g. window title to hide) and then completely exit the script without keeping it resident in memory.

That way I could implement it into ac'tiveaid Wink
I saw in your script that you also know ac'tiveaid?
_________________
Oliver Kötter
Back to top
View user's profile Send private message
Junyx



Joined: 11 Jul 2005
Posts: 84
Location: Germany

PostPosted: Mon Feb 12, 2007 6:45 pm    Post subject: Reply with quote

well, good news!
i have a working beta that does hide windows on startup of Min2Tray.
i must only come up with a UI to let the user handle the list of windows.

but i think you want M2T to hide a window thats name you submitted on the command line, don't you?

Junyx
_________________
C.R.E.A.M.
Back to top
View user's profile Send private message
Guest






PostPosted: Mon Feb 12, 2007 7:19 pm    Post subject: Reply with quote

Junyx wrote:

but i think you want M2T to hide a window thats name you submitted on the command line, don't you?
Junyx


Yepp, that's right.

Oliver
Back to top
Junyx



Joined: 11 Jul 2005
Posts: 84
Location: Germany

PostPosted: Tue Feb 13, 2007 8:08 pm    Post subject: Reply with quote

Oliver wrote:
Yepp, that's right.

you can use M2T right now for your evil plans:

first, get the window id of the desired window:
Code:
WinGet, winID, ID, <title of window>

(you can do it differently, of course...)

second, execute M2T with window id as first argument on command line:
Code:
Run, Min2Tray.exe %winID%, , UseErrorLevel, newPID

in %newPID% you now have the pid of the newly created M2T instance.
killing it will unhide the window automatically.

Junyx
_________________
C.R.E.A.M.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next
Page 5 of 9

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group