pngs gives error so attached ico files
The three .png files I'm using here are working perfectly fine...
-highend01
I got this error
---------------------------
ahk tray icon that shows if wifi connection is 2.4 or 5 GHz.ahk
---------------------------
Error: Can't load icon.
Specifically: E:\TempE\_grey.png
Line#
016: RegExMatch(result, "im)channel\s+:\s*(?P<Channel>\d{1,3})", match)
018: if (matchChannel >= 1 && matchChannel <= 14)
019: Menu,Tray,Icon,%A_ScriptDir%\_green.png
020: Else
020: if (matchChannel >= 34)
021: Menu,Tray,Icon,%A_ScriptDir%\_red.png
022: Else
---> 023: Menu,Tray,Icon,%A_ScriptDir%\_grey.png
025: Return
029: {
031: cmd := (params) ? cmd . " " . params : cmd
033: DllCall("CreatePipe", "Ptr*", hStdInRd , "Ptr*", hStdInWr , "Uint", 0, "Uint", 0)
034: DllCall("CreatePipe", "Ptr*", hStdOutRd, "Ptr*", hStdOutWr, "Uint", 0, "Uint", 0)
035: DllCall("SetHandleInformation", "Ptr", hStdInRd , "Uint", 1, "Uint", 1)
036: DllCall("SetHandleInformation", "Ptr", hStdOutWr, "Uint", 1, "Uint", 1)
The current thread will exit.
---------------------------
OK
---------------------------
Changing .png to .ico and using the ico files, it worked correctly. Maybe autohotkey version problem. There is no problem/error in your code.
Thanks for it.
Regards,
Anand