Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Issue with TrayTip ( XP )

$
0
0
Hi all i have a big issue with TrayTip:
The code:
[ autoit ]         
#NoTrayIcon Opt("TrayMenuMode", 1) ; Default tray menu items (Script Paused/Exit) will not be shown. Local $settingsitem = TrayCreateMenu("Settings") TrayCreateItem("Display", $settingsitem) TrayCreateItem("Printer", $settingsitem) TrayCreateItem("") Local $aboutitem = TrayCreateItem("About") TrayCreateItem("") Local $exititem = TrayCreateItem("Exit") TraySetState() While 1 Local $msg = TrayGetMsg() Select Case $msg = 0 ContinueLoop Case $msg = $aboutitem TEST() TrayTip("TEST MESSAGE", "TEST MESSAGE", 1) Case $msg = $exititem ExitLoop EndSelect WEnd Func TEST() send("#d") Sleep(100) ConsoleWrite("END") EndFunc ;==>TEST

I see the traytip before many second ( 4-5 sec ) instead of 100ms. The problem is with "Show Desktop", if i remove it i see the traytip
I have try with object instead of send
[ autoit ]      
Local $ShellObj = ObjCreate("Shell.Application") $ShellObj.ToggleDesktop()

And WinMinimizeAll(), is the same

If i use a MsgBox work fine, if i use a MsgBox before the traytip i see the traytip instantly
How i can resolve this?

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>