Jump to content

Some important Questions


Recommended Posts

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!!

Link to comment
Share on other sites

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!!!

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...