 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
MomoK
Joined: 01 May 2009 Posts: 1
|
Posted: Wed Sep 30, 2009 10:39 pm Post subject: GUI bei Klick auf Schließen/Min. in SysTray ohne zu beenden? |
|
|
Hi.
ich habe einsehr kurzes Script geschrieben, dass aber seine Aufgabe erfüllt. Einzig die Tatsache, dass ich die GUI in der Taskleiste habe, nervt mich total. Wie kann ich das abschalten, sodass ich nur auf Minimieren drücken brauch, damit sich das Fenster in als SysTray-Icon minimiert.
Also nochmal mein Anliegen in Kurzformat: "Bei GUI Taskbar-Button ausblenden...".
Ich habs bereits mit versucht, aber das ging nicht.
| Code: |
Gui, Add, CheckBox, x26 y30 w100 h40, Allow Fritz to ShutDown
Gui, Add, CheckBox, x186 y30 w100 h40, Allow Franz to ShutDown
Gui, Add, GroupBox, x16 y10 w120 h70 , Franz
Gui, Add, GroupBox, x176 y10 w120 h70 , Fritz
Gui, Show, x131 y91 h117 w324, New GUI Window
;Gui, +Taskbar ; Geht nicht:-(
Return
|
[Moved from Scripts & Functions forum. ~jaco0646] |
|
| Back to top |
|
 |
wrong section alert Guest
|
Posted: Wed Sep 30, 2009 11:11 pm Post subject: |
|
|
| Mod, please move to ask for help |
|
| Back to top |
|
 |
Roland
Joined: 08 Jun 2006 Posts: 307
|
Posted: Thu Oct 01, 2009 12:16 am Post subject: |
|
|
Geht leider nur etwas umstaendlich ueber das GuiSize label:
| Code: | Menu, Tray, noStandard ; optional
; add tray menu item to restore GUI
Menu, Tray, Add, Show, Show
; make it the default, so the GUI is restored
; when user double-clicks the tray icon
Menu, Tray, default, Show
Gui, Add, CheckBox, x26 y30 w100 h40, Allow Fritz to ShutDown
Gui, Add, CheckBox, x186 y30 w100 h40, Allow Franz to ShutDown
Gui, Add, GroupBox, x16 y10 w120 h70 , Franz
Gui, Add, GroupBox, x176 y10 w120 h70 , Fritz
Gui, Show, x131 y91 h117 w324, New GUI Window
;Gui, +Taskbar ; Geht nicht:-(
Return
GuiSize:
; a_eventInfo = 1 -> GUI is being minimized
ifEqual, a_eventInfo, 1, {
Gui, hide
return ; avoid doing any resizing
}
return
; show the GUI
Show:
Gui, Show
return |
Es giebt uebrigens auch ein Deutsches Forum  |
|
| 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
|