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 

GUI bei Klick auf Schließen/Min. in SysTray ohne zu beenden?

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
MomoK



Joined: 01 May 2009
Posts: 1

PostPosted: Wed Sep 30, 2009 10:39 pm    Post subject: GUI bei Klick auf Schließen/Min. in SysTray ohne zu beenden? Reply with quote

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
Code:
gui, +taskbar
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
View user's profile Send private message
wrong section alert
Guest





PostPosted: Wed Sep 30, 2009 11:11 pm    Post subject: Reply with quote

Mod, please move to ask for help
Back to top
Roland



Joined: 08 Jun 2006
Posts: 307

PostPosted: Thu Oct 01, 2009 12:16 am    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
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