sp.StoreObject("minWindow", sp.WindowFromPoint(sp.GetCurrentMousePoint(), true)); var hCMD = sp.WindowFromClassOrTitle('CabinetWClass', ''); if (hCMD !== null){ if(hCMD.Minimized) { sp.GetStoredObject("minWindow").Activate(); } else { hCMD.Activate(); hCMD.BringToFront(); } }else{ sp.SendModifiedVKeys([vk.LWIN], [vk.VK_E]); }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter