7 posts in this topic
I have tried _GUIToolTip_AddTool() & GUICtrlSetTip() & TrayItemGetHandle() but have had no luck...is there a way that I have missed, or is it not possible to create a ToolTip for an individual item in the Tray?
Looked around, but could not find anything, and thought I would just ask if it was possible. Looking to pop a png or jpg file on hover over a TrayCreateItem - is that possible (similar to HTML, where you hover over an item, and either a larger pic or a different pic shows while hover (just as a reference to what I am looking to achieve)?
i do have a simple question what i do not realy understand what hapend and why.
I did made a small program, what is converting Valuta prices to other type, cause i got tired of use all the time google for it. After that i "convert" it into an exe file. All the Valute prices are in INI file, and work perfect.
I did made another small script (Tray menu) and then when i click on the proper TrayItem it should run the Valute exchanger exe file, but something is wrong. The exe is running, but when i calculate with it, it give me only 0 resoults. If i run the exe manualy it is work properly. How does it come, from Tray menu item wont work, and from manualy run it work hot it have to work?
Case $iValutaCalculator Run("C:\Users\asd\Desktop\EU_USD.exe") Best Regards,
Hi guys, i have this script:
#NoTrayIcon #include <GuiConstantsEx.au3> #include <Constants.au3> Global $About, $Exit Opt("TrayOnEventMode", 1) Opt("TrayMenuMode", 3) TraySetOnEvent($TRAY_EVENT_PRIMARYUP, "SpecialEvent") TraySetOnEvent($TRAY_EVENT_SECONDARYUP,"TrayMenu") GUICreate("TestGUI", 392, 316, -1, -1) GUISetState() While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_MINIMIZE GUISetState(@SW_HIDE) TraySetState(1) ; show Case $msg = $GUI_EVENT_CLOSE ExitLoop EndSelect WEnd Func TrayMenu() Local $About = TrayCreateItem("About") TrayCreateItem("") ; Create a separator line. Local $Exit = TrayCreateItem("Exit") While 1 Switch TrayGetMsg() Case $About MsgBox(0,0,"Test") Case $Exit ; Exit the loop. ExitLoop EndSwitch WEnd EndFunc Func SpecialEvent() GUISetState(@SW_SHOW) TraySetState(2) ; hide EndFunc ;==>SpecialEvent
I want to minimize the GUI ( work ) and, when minimized, add a menu to the tray icon ( i see the menù but don't work )
Second question, i have a Func with a MsgBox at the end. I'd like to have a MsgBox only if the GUI isn't minimized, so how to check the status of the GUI? Example if not minimized do a MsgBox, if is minimized do a TrayTip.
Thanks for support