Popular Post Beege Posted July 26, 2020 Popular Post Share Posted July 26, 2020 Here is a small and simple little script for creating a tiny cpu indicator bar that sits right above the taskbar like in the pic below. I got the idea from an android phone app called micro cpu and liked the concept. _TinyCPU.au3 argumentum, spudw2k, pdvos and 6 others 7 2 Assembly Code: fasmg . fasm . BmpSearch . Au3 Syntax Highlighter . Bounce Multithreading Example . IDispatchASMUDFs: Explorer Frame . ITaskBarList . Scrolling Line Graph . Tray Icon Bar Graph . Explorer Listview . Wiimote . WinSnap . Flicker Free Labels . iTunesPrograms: Ftp Explorer . Snipster . Network Meter . Resistance Calculator Link to comment Share on other sites More sharing options...
ModemJunki Posted August 28, 2020 Share Posted August 28, 2020 This is really great. I've been trying to figure out if I can right-justify (place above the notification icons) or center this but it's beyond my reach at the moment. 😞 Always carry a towel. Link to comment Share on other sites More sharing options...
seadoggie01 Posted August 28, 2020 Share Posted August 28, 2020 Very nice! I love this, it's so unobtrusive! @ModemJunki I like the idea... Change line 77 (I think) from this: _GDIPlus_GraphicsDrawLine($g_hGraphic, 0, 0, Round(@DesktopWidth * $fCPU), 0, $g_hPen) Right align: _GDIPlus_GraphicsDrawLine($g_hGraphic, @DesktopWidth - Round(@DesktopWidth * $fCPU), 0, @DesktopWidth, 0, $g_hPen) Or to Center it... _GDIPlus_GraphicsDrawLine($g_hGraphic, Round(@DesktopWidth/2 - (@DesktopWidth * $fCPU)/2), 0, Round(@DesktopWidth/2 + Round(@DesktopWidth * $fCPU)/2), 0, $g_hPen) $fCPU is the current CPU usage on a scale of 0 to 1 and when you multiply it by the width of the desktop, that's the length of the line you want. _GDIPlus_GraphicsDrawLine draws a line using two points [X, Y] to [X2, Y2] argumentum 1 All my code provided is Public Domain... but it may not work. Use it, change it, break it, whatever you want. Spoiler My Humble Contributions:Personal Function Documentation - A personal HelpFile for your functionsAcro.au3 UDF - Automating Acrobat ProToDo Finder - Find #ToDo: lines in your scriptsUI-SimpleWrappers UDF - Use UI Automation more Simply-erKeePass UDF - Automate KeePass, a password managerInputBoxes - Simple Input boxes for various variable types Link to comment Share on other sites More sharing options...
ModemJunki Posted August 28, 2020 Share Posted August 28, 2020 Thanks, @seadoggie01! Always carry a towel. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now