 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Demokos
Joined: 28 Dec 2005 Posts: 84
|
Posted: Wed Sep 06, 2006 10:56 pm Post subject: |
|
|
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 :or with : | Code: | | Else If (tmp = "0C") | I remember now I had a similar problem with my Mr Clean script... Solved |
|
| Back to top |
|
 |
Junyx
Joined: 11 Jul 2005 Posts: 84 Location: Germany
|
Posted: Wed Sep 06, 2006 11:08 pm Post subject: |
|
|
well, i was first (see my last post)
but nevertheless -- good work, thx! _________________ C.R.E.A.M. |
|
| Back to top |
|
 |
Demokos
Joined: 28 Dec 2005 Posts: 84
|
Posted: Wed Sep 06, 2006 11:14 pm Post subject: |
|
|
As we say in France, "Les grands esprits se rencontrent" (The great minds meet)  |
|
| Back to top |
|
 |
Junyx
Joined: 11 Jul 2005 Posts: 84 Location: Germany
|
Posted: Thu Sep 07, 2006 6:24 am Post subject: |
|
|
| Demokos wrote: | As we say in France, "Les grands esprits se rencontrent" (The great minds meet)  |
well, there is a less gentle saying in german: "Zwei Dumme - ein Gedanke." (two stupid men - one thought/idea.)  _________________ C.R.E.A.M. |
|
| Back to top |
|
 |
Demokos as guest Guest
|
Posted: Thu Sep 07, 2006 8:17 am Post subject: |
|
|
| Junyx wrote: | "Zwei Dumme - ein Gedanke." (two stupid men - one thought/idea.)  | So the meaning is the same... |
|
| Back to top |
|
 |
Junyx
Joined: 11 Jul 2005 Posts: 84 Location: Germany
|
Posted: Thu Sep 07, 2006 8:24 pm Post subject: |
|
|
| 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 )
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 |
|
 |
Demokos
Joined: 28 Dec 2005 Posts: 84
|
Posted: Fri Sep 08, 2006 7:44 am Post subject: |
|
|
| 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 |
|
 |
Junyx
Joined: 11 Jul 2005 Posts: 84 Location: Germany
|
Posted: Fri Sep 08, 2006 2:41 pm Post subject: |
|
|
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 |
|
 |
Demokos
Joined: 28 Dec 2005 Posts: 84
|
Posted: Fri Sep 08, 2006 4:55 pm Post subject: |
|
|
| 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 |
|
 |
Junyx
Joined: 11 Jul 2005 Posts: 84 Location: Germany
|
Posted: Sun Sep 10, 2006 10:24 pm Post subject: |
|
|
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  _________________ C.R.E.A.M. |
|
| Back to top |
|
 |
Demokos as guest Guest
|
Posted: Mon Sep 11, 2006 6:01 am Post subject: |
|
|
| 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  | 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
|
Posted: Mon Feb 12, 2007 6:31 pm Post subject: |
|
|
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
I saw in your script that you also know ac'tiveaid? _________________ Oliver Kötter |
|
| Back to top |
|
 |
Junyx
Joined: 11 Jul 2005 Posts: 84 Location: Germany
|
Posted: Mon Feb 12, 2007 6:45 pm Post subject: |
|
|
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 |
|
 |
Guest
|
Posted: Mon Feb 12, 2007 7:19 pm Post subject: |
|
|
| 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
|
Posted: Tue Feb 13, 2007 8:08 pm Post subject: |
|
|
| 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 |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|