Author Topic: Memory Status Toy, Memstat.exe  (Read 1509 times)

daydreamer

  • Member
  • ****
  • Posts: 926
  • watch Chebyshev on the backside of the Moon
Re: Memory Status Toy, Memstat.exe
« Reply #15 on: July 11, 2019, 03:29:07 AM »
upgraded to memory to 20gb so I can try out the huge memory advantage in 64bit,not because I want to bloat it,but that produce something fast,that isnt stopped by 32bit mode memory "walls"
Quote from Flashdance
Nick  :  When you give up your dream, you die
*wears a flameproof asbestos suit*
Gone serverside programming p:  :D

Antariy

  • Member
  • ****
  • Posts: 551
Re: Memory Status Toy, Memstat.exe
« Reply #16 on: July 12, 2019, 11:21:58 AM »
According to talks about tray icon indicators, just some idea aloud.
RAM Clear (look at signature below this message) has a feature to show free RAM in the Tray Icon - as a digital indicator in the percentage manner.
It's C(++) code, and, as described in its thread, is not neat, multiple times rewritten/extended without real refactorization to make it greater looking, lol, so won't post the sources there/here.
But the idea was to create a bmp (in memory, GDI), then to draw to it the percentage number with text (like TextOut, in other words, GDI also), then create simple icon with using that bmp, then draw that icon on the taskbar/tray. Remember to calculate in realtime the size of text to fit it into the center/centre of the icon exactly, or predetermine it before an action (to hardcode it) depending on the size of an icon you will make, and the type of font you will use (monospaced fonts are a lot easier to use in this hardcoded way, just use pixel-size when you create it).

AW

  • Member
  • *****
  • Posts: 2388
  • Let's Make ASM Great Again!
Re: Memory Status Toy, Memstat.exe
« Reply #17 on: July 12, 2019, 05:51:31 PM »
I had a gadget in Windows 7 for Memory Status and CPU usage, then Microsoft cut all the fun short by abolishing sidebar gadgets in Windows 10 (Windows 8.x as well). I never believed Microsoft reasons for that (and they never showed concrete cases of security issues or proved they could not mitigate them case they existed) - all they really wanted was to replace these little funny toys with appstore jumbo size crap - but failed.   :skrewy:

fearless

  • Member
  • ***
  • Posts: 468
    • LetTheLightIn
Re: Memory Status Toy, Memstat.exe
« Reply #18 on: July 13, 2019, 11:37:47 PM »
Thanks. I haven't updated the TrayMenu library in a while, but had thought of exposing the function that creates the transparent icons with text - Another user on tuts4you was using it for a cpu load type thing - and I thought of creating another function where you could pre-create all the icons required "0%", "1%",..."99%"" and just store them in an array of icon handles so that you could just fetch the icon for whichever percent value you wanted to display. Might try and get round to adding that in future. Although the benefit of dynamically creating them is if say you had a preferences in your app and user wanted to specify a color for the text.

I created something similar in another app i created to monitor my qnap nas box:

The first 4 icons are for the qnap for temperature and cpu usage. The other text based icons in the tray area are from CpuTemp and MSIAfterburner
fearless

CM690II Case, HX1000 PSU, Asus Z97, Intel i7-4790K, Seidon 120v Cooler, 16GB DDR3, MSI GTX 980TI

My Github  Twitter

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 6715
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: Memory Status Toy, Memstat.exe
« Reply #19 on: July 14, 2019, 02:08:33 AM »
Rudi suggested some time ago to make a showcase for members to show completed applications and while it is a good idea, the risk is it would end up full of crap and to delete the crap would end up putting at least some people's nose out of joint. Most of the stuff in this thread should not be here as this sub forum is for 64 bit MASM code.

Any feedback on the idea of a showcase would be welcome.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy: