Jump to content

Recommended Posts

  • 1 month later...

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]

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 functions
Acro.au3 UDF - Automating Acrobat Pro
ToDo Finder - Find #ToDo: lines in your scripts

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...