18 posts in this topic
Local $idRep = GUICtrlCreateMenuItem(">My First Report", $idReportmenu) GUICtrlSetTip($idRep, "Standard Report") Nothing appears obvious. It may be impossible to set a tip to a menu Item... ?
Any ideas please?
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,
Could someone please explain where my thoughts went wrong?
I searched the forum and I found of course some posts, but I didn't found the right idea/hint.
I fear it's a face palm for me.....
I stripped down everything to this:
#include <Debug.au3> #include <array.au3> _DebugSetup(@ScriptName,False,2) #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 351, 270, 192, 124) $Button1 = GUICtrlCreateButton("Button1", 64, 32, 217, 65) $Button2 = GUICtrlCreateButton("Button2", 64, 112, 217, 65) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### local $MessageBundletextfile="MSGBUNDLE.INI" local $arrTemp $arrTemp=IniReadSection($MessageBundletextfile,"CONTROLTIP") _ArrayDisplay($arrTemp) for $i = 1 to $arrTemp _debugout($arrTemp[$i]&":"&$arrTemp[$i]) GUICtrlSetTip($arrTemp[$i],$arrTemp[$i]) Next While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd
File Conent of $MessageBundletextfile="MSGBUNDLE.INI"
[CONTROLTIP] $hGui = "Hello" $Button1 = "Tip on Button1" $Button2 = "Tip on Button2"
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