Main Area and Open Discussion > General Software Discussion
Wanted: tray icon that shows if wifi connection is 2.4 or 5 GHz
highend01:
pngs gives error so attached ico files
--- End quote ---
The three .png files I'm using here are working perfectly fine...
anandcoral:
pngs gives error so attached ico files
--- End quote ---
The three .png files I'm using here are working perfectly fine...
-highend01 (January 16, 2020, 06:32 AM)
--- End quote ---
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
highend01:
The .png files you've attached to your previous post are working fine as well.
AHK v1.1.32.00
anandcoral:
The .png files you've attached to your previous post are working fine as well.
AHK v1.1.32.00
-highend01 (January 16, 2020, 06:53 AM)
--- End quote ---
Ahh..mine is still older version 1.0.48.05
Looks like I need to upgrade, as I am missing many new features of it.
Regards,
Anand
anandcoral:
Updated Autohotkey to Version 1.1.32.00, and it is using png files as tray icon now :D
Regards,
Anand
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version