The MASM Forum
Welcome, Guest. Please login or register.
Did you miss your activation email?
September 03, 2010, 04:57:22 am

Login with username, password and session length
Search:     Advanced search
116888 Posts in 13958 Topics by 1631 Members
Latest Member: anglear_
* Home Help Search Login Register
+  The MASM Forum
|-+  General Forums
| |-+  The Workshop
| | |-+  HddMon - The Next Generation
« previous next »
Pages: 1 2 [3] Print
Author Topic: HddMon - The Next Generation  (Read 5028 times)
Phoenix
Member
*****
Gender: Male
Posts: 136



Re: HddMon - The Next Generation
« Reply #30 on: May 02, 2006, 10:55:27 pm »

Hi Mark,

would it be possible to add a toggle to hide the two tray icons?
Should be simple, i'll have a look at it. Thanks for your suggestion!

p.s. I've always thought that a "docking" window meant it was "self-aligning" to another window or edge of the screen (so it is working correctly.)
Thats what i think, too. But there are a lot of different terms floating around: magnetic, docked, floating etc. so i have problems to understand what PBrennick actually means. I googled a lot about "docked windows" but this did not help...

EDIT: I even tried to get a copy of "Ewayne's apploader" but this was not successfull. Does anybody know where to get it? (It's Freeware, I suppose)
Logged

Go the extra mile. It's never crowded...
Ghirai
Member
*****
Posts: 476



Re: HddMon - The Next Generation
« Reply #31 on: May 03, 2006, 12:01:54 am »

I get 2 drives detected, 0 reported Cry

I'm running XP SP2 Pro, and have 2 logical part. on a 300 GB Maxtor, primary IDE master.
Logged

MASM32 Project/RadASM mirror - http://ghirai.com/hutch/mmi.html
PBrennick
Never be satisfied
Member
*****
Gender: Male
Posts: 2083


Never under-estimate the power of an idea


Re: HddMon - The Next Generation
« Reply #32 on: May 03, 2006, 07:45:54 am »

Mark,
I am attaching Ewayne's AppLoader project, it is really a great program.  Now, abut this docking thing, you guys are ganging up on me!  BigGrin boohoo  Anyway, I may be causing a confusing here and making things mre difficult t understand than they need t be.

From this point on, let's leave the word docking out of this discussion.  Phoenix,of course, I d not have a recent copy of the project but I can work around  that.  You have created a dialog box without a title bar, etc., that has a cool method to control its transparency and is used to display the activity of reporting HDDs.  I have alterred the code to change the location of the this 'details' window.

Code:
done:   
    pop    ecx                  ; ecx = 2*borderwidth of dialog window
    mov    edx,eax
    shl    eax,4                ; eax*16
    shl    edx,3                ; edx*8
    add    eax,edx              ; dwDetectedDrives*24= ClientWidth in eax
    add    eax,ecx              ; total width of dialog
    push   ecx
    add    ecx, 730
    sub    rct.right,eax        ; left position of dialog
    sub    rct.bottom,ecx       ; top position of dialog
    pop    ecx
    add    ecx, 16

This works for me and positions the dialog box right where I want it but the code is not written currectly as it is referencing the location as an offset from the bottom of the desktop so if you are using any other resolution other than 1024x768 there will be a problem.  I am just too tired and will look at it again after I get some sleep or maybe, by then you will have fixed it.  I just want you to understand what I would like to see as an option.

Paul

* AppLoad.zip (22.06 KB - downloaded 182 times.)
Logged

The GeneSys Project is available from:
The Repository or My crappy website
PBrennick
Never be satisfied
Member
*****
Gender: Male
Posts: 2083


Never under-estimate the power of an idea


Re: HddMon - The Next Generation
« Reply #33 on: May 03, 2006, 01:41:06 pm »

Phoenix,
Okay, this is the second set of changes, they work correctly and are not video mode dependent as my first set of changes were.  I do not have a good copy of your sources that includes all your recent changes.  Will you please consider reposting the sources?  Thank you, in advance.

Code:
done:   
    pop    ecx                  ; ecx = 2*borderwidth of dialog window
    mov    edx,eax
    shl    eax,4                ; eax*16
    shl    edx,3                ; edx*8
    add    eax,edx              ; dwDetectedDrives*24= ClientWidth in eax
    add    eax,ecx              ; total width of dialog
    add    ecx, 16
    sub    rct.right,eax        ; left position of dialog
    mov    rct.bottom, 1        ; top position of dialog

Okay, so, if you want, you could take your original routine and give it an option name referring to bottom-right and take my routine and give it an option name referring to top-right.  In your menu system the user can select either preference.  If you get AppLoader you can see how eWayne utilizes offsets to nudge his stuff left and right, up and down.  Lotsa stuff to have fun with.

Paul
Logged

The GeneSys Project is available from:
The Repository or My crappy website
Phoenix
Member
*****
Gender: Male
Posts: 136



Re: HddMon - The Next Generation
« Reply #34 on: May 03, 2006, 06:43:57 pm »

I get 2 drives detected, 0 reported

That are bad news. Do you use XP drivers or other (3rd party)  drivers?
Logged

Go the extra mile. It's never crowded...
Phoenix
Member
*****
Gender: Male
Posts: 136



Re: HddMon - The Next Generation
« Reply #35 on: May 03, 2006, 07:00:47 pm »

Will you please consider reposting the sources?
Updated with first post!

Thank you for posting eWayne's AppLoader, very nice and interesting tool!

So, i see want you want to do. In addition to the capability to drag the details window on the screen whereever you want by moving the mouse with left mouse button down, your intention is to add some predefined positions to the popup menu like "left-top" or "bottom-right"? That should be an easy task. Additional, i think an option "fix actual position" to disable accitental move could be a good idea?

Please let me know what you think. Thanks in advance.
Logged

Go the extra mile. It's never crowded...
PBrennick
Never be satisfied
Member
*****
Gender: Male
Posts: 2083


Never under-estimate the power of an idea


Re: HddMon - The Next Generation
« Reply #36 on: May 03, 2006, 07:35:41 pm »

Phoenix,
Yes and yes.  We think alike.  I will do some modes on the predetermined positions and then we can compare notes.  If I get pushy, just say so, I can handle it.
Paul
Logged

The GeneSys Project is available from:
The Repository or My crappy website
Phoenix
Member
*****
Gender: Male
Posts: 136



Re: HddMon - The Next Generation
« Reply #37 on: May 03, 2006, 09:07:13 pm »

Paul,

i did a quick implementation of the four positions selectable by details menu. You might have a look at attached file (with source) if you like. The "Fix Position" option is not implemented, but i am now too tired to continue.

* HddMon_b.zip (49.98 KB - downloaded 215 times.)
Logged

Go the extra mile. It's never crowded...
PBrennick
Never be satisfied
Member
*****
Gender: Male
Posts: 2083


Never under-estimate the power of an idea


Re: HddMon - The Next Generation
« Reply #38 on: May 03, 2006, 09:39:21 pm »

Phoenix,
It sure does not take you long to get these ideas implimented.  Well, that is all 'I' can think of.  It has been fun and I really like this application!  If there are any further tests you need to have done ...

Paul
Logged

The GeneSys Project is available from:
The Repository or My crappy website
Phoenix
Member
*****
Gender: Male
Posts: 136



Re: HddMon - The Next Generation
« Reply #39 on: May 04, 2006, 07:09:47 pm »

Well, that is all 'I' can think of.  It has been fun and I really like this application!  If there are any further tests you need to have done ...

Paul, thank you very much for your help an suggestions, this little project is a lot of fun for me with your support! There are some more ideas that i want to get working, for example to show the details window in vertical order too as an option. However, i think some kind of "reorganization" (?) should be done, as only one window is needed to do the job... aso. This will take some time.

Again, thanks a lot!

Phoenix
Logged

Go the extra mile. It's never crowded...
John
Guest


Email
Re: HddMon - The Next Generation
« Reply #40 on: May 05, 2006, 02:11:47 am »

Hi Phoenix,
Since it seems like you are indeed enjoying this I wonder if you'd be interested in making an option to hide the tray icons when the details window is showing? It would also be nice to be able to use one icon but I think I already mentioned that ;). I was going to modify the code myself, since you were nice enough to provide the code, and make it so that it flips between red, green, and off with red being the higher priority to display. Another idea for a predetermined position would be center top so it shows in the middle of the screen while "docked" to the top.

It still looks great and I really like the idea of showing the drives vertically in the details pane!

Keep up the good work!
Logged
gabor
Member
*****
Gender: Male
Posts: 321


Paper, pen for programming, computer for coding.


Test results
« Reply #41 on: May 05, 2006, 07:26:29 am »

Hello!

Nice work! I have WinXP SP1, 1 HD with 3 partitions, a 3,5 floppy, a DVD-ROM/CDRW combo drive, 2 virtual CD/DVD ROMs (Daemon Tools) and an USB pen drive.
All these drives are detected, only the real HDD drives are reporting. When I access the emulated CD drives, I get HDD activity on the partision that contains the mounted image file. (This could be considered as correct behavior, since your app is a HDD monitor.)
Was your intension to monitor HDD activity or you want to report every drive's activity?

Greet job, I especially like the icons in the notification area. (Good to have a working code about this topic for later... BigGrin )

Greets, Gábor
Logged

Phoenix
Member
*****
Gender: Male
Posts: 136



Re: HddMon - The Next Generation
« Reply #42 on: May 05, 2006, 07:56:01 pm »

When I access the emulated CD drives, I get HDD activity on the partision that contains the mounted image file. (This could be considered as correct behavior, since your app is a HDD monitor.)
This should be correct, since the hard disk is affected (the image file is just a file located on a specific volume, i think)

Was your intension to monitor HDD activity or you want to report every drive's activity?
Well, this one started as a disk monitor (MichaelW's idea initially) but i started to look how other types of volumes as cd roms can be monitored (any suggestion?). I am also trying to understand the different behavior on XP systems (PartMngr) and W2K systems, which at least differs in performance request support for USB-drives (monitoring works on W2K, not with XP) - short answer: yes and yes  lol

I wonder if you'd be interested in making an option to hide the tray icons when the details window is showing? It would also be nice to be able to use one icon but I think I already mentioned that ;)
On the "to do" list  lol but may take a while as i am very busy now with other projects (not coding)

It still looks great and I really like the idea of showing the drives vertically in the details pane!
Same as above, on list...

As i said before, i think its about time to make up a new project as there are now more things i want to get working and they should be in design from beginning and not added by tinkering. It should also be possible to see more information on all detected volumes like size, type etc.

So any suggestion is greatly appreciated, thank you all for your support!

Regards, Phoenix
Logged

Go the extra mile. It's never crowded...
Cobra
Member
**
Posts: 48


Re: HddMon - The Next Generation
« Reply #43 on: December 17, 2006, 05:18:18 pm »

Thank you for this great little app. It's a keeper for me.  ThumbsUp
Logged
Pages: 1 2 [3] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP The MASM Forum | Powered by SMF 1.0.12.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!