![]() Note: going to replace the psuedo-arrays with proper Map() objects eventuallyįor feature in features := #Warn VarUnset, Off Stops useless warnings from being thrown due to dynamic variable/object creation below Ĝreate empty associative arrays to hold each GUI control object for each monitor found , monitorMenuTabs := monitorMenu.Add("Tab3",, MonitorTabs(info, monitorCount)) x, y, width, height associative arrays to hold monitor coords, etc. , monitorMenu.BackColor := 0x000000, monitorMenu.MarginX := 20, monitorMenu.MarginY := 20 , monitorMenu.SetFont("c0x7678D0 s9 bold q5") , monitorMenu.OnEvent("Size", (monitorMenu, MinMax, *) => (MinMax = -1 ? monitorMenu.Hide() : "")) , monitorMenu.OnEvent("Close", (monitorMenu) => monitorMenu.Hide()) MonitorMenu := Gui.New("Resize", A_IconTip) Try (FileExist(A_ScriptDir "\close-app.png")) ? FileDelete(A_ScriptDir "\close-app.png") : "" Try (FileExist(A_ScriptDir "\tray-icon.png")) ? FileDelete(A_ScriptDir "\tray-icon.png") : "" Try A_TrayMenu.SetIcon("Close", A_ScriptDir "\close-app.png") ![]() Try A_TrayMenu.SetIcon(A_IconTip, A_ScriptDir "\tray-icon.png") Try TraySetIcon(A_ScriptDir "\tray-icon.png") Try Download("", A_ScriptDir "\close-app.png") Try Download("", A_ScriptDir "\tray-icon.png") Try to download and set tray/menu icons without keeping images saved locally Allows a single left-click on taskbar icon to open monitor menu ,Ě_TrayMenu.Add(A_IconTip, (*) => monitorMenu.Show()) Create tray menu with only a "Close App" option A U T O - E X E C U T E
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |