sebsabul Posted April 2, 2005 Posted April 2, 2005 Hey guys, need some help, please: (Sorry: bad english.. :"> ) 1.How can I change the Icon in the tray(during the script) ? 2. How can I change the Icon in the tray (ever, not during a script)? 3.I will that my GUI starts minimized (IN THE TRAY, BESIDE THE CLOCK!!) And when i click with the mouse on the tray icon, the programm should visible. How? Than you for answers!!
layer Posted April 2, 2005 Posted April 2, 2005 (edited) 1.) GUISetIcon()2.) Don't understand...? Please recite. 3.) You need the lates BETA in the Developer section to do TrayMenu functions. Heres the link: http://www.autoitscript.com/forum/index.php?showtopic=9202 Edited April 2, 2005 by layer FootbaG
Tagor Posted April 2, 2005 Posted April 2, 2005 2. You can select another icon when you compile the program.
sebsabul Posted April 2, 2005 Author Posted April 2, 2005 Thank you for your answers. Now I´ve got the lates BETA. But its too difficult: Here is my script: #include <GUIConstants.au3> #Include <Constants.au3> #NoTrayIcon Opt("TrayMenuMode",1) TraySetState() $trayitem1 = TrayCreateItem("Anzeigen") $trayitem2 = TrayCreateItem("Exit") $InfoGui = GUICreate("Info", 900, 500) $textlabel = GUICtrlCreateLabel ("", 5, 5, 895, 150) $textlabel2 = GUICtrlCreateLabel ("", 5, 170, 895, 150) $textlabel3 = GUICtrlCreateLabel ("", 5, 340, 895, 150) GUISetState (@SW_HIDE) TraySetIcon("C:\Windows\System\default.ico") AdlibEnable("myadlib", 1000) local $info = 0 local $wait = 1000 local $timer = 0 local $msg = GUIGetMsg() While 1 WinWait("Nachrichtendienst", "") If WinWait("Nachrichtendienst", "") then $info = $info + 1 $text = WinGetText("Nachrichtendienst") ControlSetText($InfoGui, "", $textlabel, $text) TrayTip ( "Info", "Meldung eingegangen.", 86400000) winclose("Nachrichtendienst") endif If $info = 10 then Run("C:\Windows\System\send.massage.disabled.bat") sleep(2000) Run("net stop nachrichtendienst") $info = 0 endif WinWait("Nachrichtendienst", "") If WinWait("Nachrichtendienst", "") then $info = $info + 1 $text = WinGetText("Nachrichtendienst") ControlSetText($InfoGui, "", $textlabel2, $text) TrayTip ( "Info", "Meldung eingegangen.", 86400000) winclose("Nachrichtendienst") endif If $info = 10 then Run("C:\Windows\System\send.massage.disabled.bat") sleep(2000) Run("net stop nachrichtendienst") $info = 0 endif WinWait("Nachrichtendienst", "") If WinWait("Nachrichtendienst", "") then $info = $info + 1 $text = WinGetText("Nachrichtendienst") ControlSetText($InfoGui, "", $textlabel3, $text) TrayTip ( "Info", "Meldung eingegangen.", 86400000) winclose("Nachrichtendienst") endif If $info = 10 then Run("C:\Windows\System\send.massage.disabled.bat") sleep(2000) Run("net stop nachrichtendienst") $info = 0 endif Wend Func myadlib() $timer = $timer + 1 If $timer = 60 Then $info = 0 If $timer = 60 then $timer = 0 EndFunc Zitat: _______________________________________________________ I will that my GUI starts minimized (IN THE TRAY, BESIDE THE CLOCK!!) And when i click with the mouse on the tray icon, the programm should visible. How? ___________________________________________________________ I don´t understand it? How? And why don´t change my task icon? Now i´ve got the old icon, but without a tray menü... Please help!!!! Thanks!!!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now