jf_EwfInfo_v0.06 - Tool to monitor EWF memory usage

Discussion in 'Windows' started by jfitie, Sep 29, 2008.

  1. jfitie

    jfitie

    Joined:
    Sep 19, 2008
    Messages:
    22
    Likes Received:
    0
    Because I still only have 512MB of RAM and I like using EWF, I created a little program to easily monitor and control EWF.

    * Sept. 29 2008 @ 21:39 CET: Updated to version 0.02
    * Oct. 03 2008 @ 20:00 CET: Updated to version 0.03
    * Oct. 05 2008 @ 14:16 CET: Updated to version 0.05
    * Oct. 17 2008 @ 08:33 CET: Updated to version 0.06, bugfixes only
    * Nov. 23 2008 @ 13:50 CEP: Source available @ viewtopic.php?f=6&t=4393&p=47342#p47342

    :arrow: jf_EwfInfo
    [​IMG]

    It will automatically check the total amount of memory used by EWF every minute, and shows this when you hover your mouse over the tray icon.
    By right clicking the menu, you're able to select what to do with changed data, commit to disk or discard.

    [​IMG]

    :idea: Download link: http://rapidshare.com/files/154795342/j ... y.exe.html

    Just place it in your Startup folder and you're done!

    New since v0.02:
    The ability to control EWF by right clicking the script's icon!

    New since v0.04:
    Tray icons, ability to disable the menu, changed popups to info on hovering

    Btw., another feature of this script is that it's also capable of controlling your speaker volume. Just use Fn+Up arrow and Fn+Down arrow and the volume will be changed and displayed. :cool:

    :idea: Limitations
    * Requires a working implementation of EWF (see http://www.aspireoneuser.com/forum/view ... =833#p5971) (note: instead of downloading the servicepack, just download the files here: http://www.aspireoneuser.com/forum/view ... t=20#p8696)
    * Only works with drive C:
    * EWFmgr.exe has to be in C:\WINDOWS\system32\ewfmgr.exe

    Hope this can be useful to anyone :)

    Best regards,
    Johan
     
    jfitie, Sep 29, 2008
    #1
  2. jfitie

    daymz

    Joined:
    Jul 28, 2008
    Messages:
    44
    Likes Received:
    0
    Location:
    Montreal, QC, Canada
    Re: jf_EwfInfo_v0.01 - Tool to monitor EWF memory usage

    Cool idea, will try that shortly !

    Thanks !
     
    daymz, Sep 29, 2008
    #2
  3. jfitie

    jfitie

    Joined:
    Sep 19, 2008
    Messages:
    22
    Likes Received:
    0
    Re: jf_EwfInfo_v0.02 - Tool to monitor EWF memory usage

    Updated to version 0.02
     
    jfitie, Sep 29, 2008
    #3
  4. jfitie

    madisonman

    Joined:
    Jul 28, 2008
    Messages:
    30
    Likes Received:
    0
    Re: jf_EwfInfo_v0.02 - Tool to monitor EWF memory usage

    I have been meaning to try EWF but only have 512mb ram. I was under the impression that this isn't enough to even startup with EWF going. Are there any other considerations that need to be made for those of us in the 512mb situation?

    PS. Thanks a lot for this tool. It makes EWF much more tempting.
     
    madisonman, Oct 1, 2008
    #4
  5. jfitie

    jfitie

    Joined:
    Sep 19, 2008
    Messages:
    22
    Likes Received:
    0
    Re: jf_EwfInfo_v0.02 - Tool to monitor EWF memory usage

    EWF works great with 512MB, just be sure to turn it off before installing large programs or doing large Windows Update sessions (select 'Reboot with EWF disabled' from the tool's menu).
    Upgrade to 1,5GB yesterday and now it's even better! Using EWF and a 64MB Ramdisk for TEMP and Temporary Internet Files makes the AAO fly!
     
    jfitie, Oct 1, 2008
    #5
  6. jfitie

    jfitie

    Joined:
    Sep 19, 2008
    Messages:
    22
    Likes Received:
    0
    Re: jf_EwfInfo_v0.03 - Tool to monitor EWF memory usage

    Updated to version 0.03
     
    jfitie, Oct 3, 2008
    #6
  7. jfitie

    jfitie

    Joined:
    Sep 19, 2008
    Messages:
    22
    Likes Received:
    0
    Re: jf_EwfInfo_v0.05 - Tool to monitor EWF memory usage

    Updated to version 0.05
     
    jfitie, Oct 5, 2008
    #7
  8. jfitie

    snupple

    Joined:
    Sep 28, 2008
    Messages:
    7
    Likes Received:
    0
    Re: jf_EwfInfo_v0.05 - Tool to monitor EWF memory usage

    I keep on getting 'EXE is corrupted' when running the .05 version
     
    snupple, Oct 5, 2008
    #8
  9. jfitie

    jfitie

    Joined:
    Sep 19, 2008
    Messages:
    22
    Likes Received:
    0
    Re: jf_EwfInfo_v0.05 - Tool to monitor EWF memory usage

    Uploaded a zip file:
    http://rapidshare.com/files/151208015/j ... y.zip.html
    Checksums:
    MD5: 9A9184E5834CDDA853243506FA5481FC
    CRC32: B01F207E

    /Johan
     
    jfitie, Oct 5, 2008
    #9
  10. jfitie

    madisonman

    Joined:
    Jul 28, 2008
    Messages:
    30
    Likes Received:
    0
    Re: jf_EwfInfo_v0.05 - Tool to monitor EWF memory usage

    Any way to undo locking the tool?
     
    madisonman, Oct 6, 2008
    #10
  11. jfitie

    jfitie

    Joined:
    Sep 19, 2008
    Messages:
    22
    Likes Received:
    0
    Re: jf_EwfInfo_v0.05 - Tool to monitor EWF memory usage

    No, do you need that to be possible?
    I only use that before giving the AAO to my gf, so I can be sure that everything's back to normal after a reboot :lol:
     
    jfitie, Oct 6, 2008
    #11
  12. jfitie

    snupple

    Joined:
    Sep 28, 2008
    Messages:
    7
    Likes Received:
    0
    Re: jf_EwfInfo_v0.05 - Tool to monitor EWF memory usage

    2 Things..

    Firstly, what happened to the ballon that used to appear every so often?

    Secondly, is there a way to make the default as COMMIT?
     
    snupple, Oct 7, 2008
    #12
  13. jfitie

    madisonman

    Joined:
    Jul 28, 2008
    Messages:
    30
    Likes Received:
    0
    Re: jf_EwfInfo_v0.05 - Tool to monitor EWF memory usage


    No it's fine now. Just the first time I got it I messed around with all the options and locked it at no-commit after I had wanted to save some things. Freaked out until I remembered I can save to SD.

    Carry on!
     
    madisonman, Oct 7, 2008
    #13
  14. jfitie

    daymz

    Joined:
    Jul 28, 2008
    Messages:
    44
    Likes Received:
    0
    Location:
    Montreal, QC, Canada
    Re: jf_EwfInfo_v0.05 - Tool to monitor EWF memory usage

    See, personally, I rather like the small tooltip that you have to trigger manually. The big automatic balloon is too intrusive imho.

    Also, by default, I think No_Cmd is the best, by default, I don't want changes written as I want my FS to be Read-Only. Only in the case when I install applications or modify settings will I want to commit changes.

    Maybe the other can put these in options (maybe as simple as reading them from an INI file, no need for a options UI).

    In any case, great work !
     
    daymz, Oct 7, 2008
    #14
  15. jfitie

    jfitie

    Joined:
    Sep 19, 2008
    Messages:
    22
    Likes Received:
    0
    Re: jf_EwfInfo_v0.05 - Tool to monitor EWF memory usage

    Thanks for your replies :)

    So, basically what you'd like is a way to configure the following settings:
    * info dialogbox: on mouse hover, automatic popup (every 5 mins? after growing 5 MB? What would you like?)
    * EWF status on startup: default COMMIT, default DISCARD

    Any other ideas?
     
    jfitie, Oct 7, 2008
    #15
  16. jfitie

    snupple

    Joined:
    Sep 28, 2008
    Messages:
    7
    Likes Received:
    0
    Re: jf_EwfInfo_v0.05 - Tool to monitor EWF memory usage

    Is there a way of popping up when say 50 or 75% of the memory for ewf is used?

    apart from that its pretty neat and small
     
    snupple, Oct 7, 2008
    #16
  17. jfitie

    jfitie

    Joined:
    Sep 19, 2008
    Messages:
    22
    Likes Received:
    0
    Re: jf_EwfInfo_v0.05 - Tool to monitor EWF memory usage

    EWF will use all available memory untill Windows crashes.
    I found that showing a popup for every 5MB was too much, how about 50MB?
     
    jfitie, Oct 7, 2008
    #17
  18. jfitie

    snupple

    Joined:
    Sep 28, 2008
    Messages:
    7
    Likes Received:
    0
    Re: jf_EwfInfo_v0.05 - Tool to monitor EWF memory usage

    sure
     
    snupple, Oct 8, 2008
    #18
  19. jfitie

    madisonman

    Joined:
    Jul 28, 2008
    Messages:
    30
    Likes Received:
    0
    Re: jf_EwfInfo_v0.05 - Tool to monitor EWF memory usage

    If it's possible, including a live commit option would be great. Thanks again for this wonderful tool
     
    madisonman, Oct 14, 2008
    #19
  20. jfitie

    jfitie

    Joined:
    Sep 19, 2008
    Messages:
    22
    Likes Received:
    0
    Since I'm not really working on this anymore, here's the AutoHotkey source for anyone who wants to play with it ;)

    Code:
    #Persistent
    #SingleInstance ignore
    
    
    ; Config
    scriptName := "AutoHotkey script v0.06"
    trayDefault := 13
    trayWait := 21
    trayActive := 9
    trayInactive := 33
    
    
    ; Default tray icon settings
    Menu, Tray, Icon, Shell32.dll, %trayDefault%
    Menu, Tray, Tip, %scriptName%
    
    
    ; Notice
    TrayTip, %scriptName%, Johan FitiĆ© <[email protected]>, , 17
    
    
    ; Initial volume
    currentVolume := 10
    SoundSet currentVolume
    
    
    ; Set timers
    SetTimer, myTimer, 30000
    
    
    ; Create menu, show info
    Gosub, GetEWFParameters
    Menu, tray, NoStandard
    if (ewfstate = "ENABLED") {
     Gosub, SetEWFnocmd
     Menu, tray, add, Commit EWF data on shutdown (commit), SetEWFcommit
     Menu, tray, add, Discard EWF data on shutdown (nocmd), SetEWFnocmd
     Menu, tray, add
     Menu, tray, add, Reboot with EWF disabled (commitanddisable), SetEWFcommitanddisable
     Menu, tray, add
     Menu, tray, add, Lock menu, LockMenu
    } else {
     Menu, tray, add, Reboot with EWF enabled (enable), SetEWFenable
    }
    
    
    ; End of script
    Return
    
    
    ; ------------ ROUTINES ------------
    
    
    SetEWFcommit:
     RunWait %comspec% /C ""C:\WINDOWS\system32\ewfmgr.exe" "C:" "-commit"", , Hide
     Gosub, GetEWFInfo
    Return
    
    
    SetEWFnocmd:
     RunWait %comspec% /C ""C:\WINDOWS\system32\ewfmgr.exe" "C:" "-nocmd"", , Hide
     Gosub, GetEWFInfo
    Return
    
    
    SetEWFcommitanddisable:
     RunWait %comspec% /C ""C:\WINDOWS\system32\ewfmgr.exe" "C:" "-commitanddisable"", , Hide
     RunWait %comspec% /C ""C:\WINDOWS\system32\shutdown.exe" "-r" "-t" "01"", , Hide
    Return
    
    
    SetEWFenable:
     RunWait %comspec% /C ""C:\WINDOWS\system32\ewfmgr.exe" "C:" "-enable"", , Hide
     RunWait %comspec% /C ""C:\WINDOWS\system32\shutdown.exe" "-r" "-t" "01"", , Hide
    Return
    
    
    LockMenu:
     Menu, tray, NoStandard
     Menu, tray, DeleteAll
     Menu, tray, add, Menu locked, DoNothing
    Return
    
    
    DoNothing:
    Return
    
    
    GetEWFParameters:
     Menu, Tray, Icon, Shell32.dll, %trayWait%
     RunWait %comspec% /C ""C:\WINDOWS\system32\ewfmgr.exe" "C:" > "%temp%ewf.tmp"", , Hide
     FileReadLine, ewfstate, %temp%ewf.tmp, 3
     ewfstate := SubStr(ewfstate, 19)
     FileReadLine, ewfcommand, %temp%ewf.tmp, 4
     ewfcommand := SubStr(ewfcommand, 19)
     FileReadLine, ewfdata, %temp%ewf.tmp, 13
     ewfdata := SubStr(ewfdata, 24)
     ewfdata := SubStr(ewfdata, 1, InStr(ewfdata, " ")-1)
     FileReadLine, ewfmapping, %temp%ewf.tmp, 14
     ewfmapping := SubStr(ewfmapping, 27)
     ewfmapping := SubStr(ewfmapping, 1, InStr(ewfmapping, " ")-1)
     Menu, Tray, Icon, Shell32.dll, %trayDefault%
    Return
    
    
    ; Volume control Up
    SC130::
    currentVolume *= 1.035
    currentVolume += 0.25
    If (currentVolume > 100) {
     currentVolume := 100
    }
    Gosub, SetVolume
    Return
    
    
    ; Volume control Down
    SC12E::
    currentVolume -= 0.25
    currentVolume /= 1.035
    If (currentVolume < 0) {
     currentVolume := 0
    }
    Gosub, SetVolume
    Return
    
    
    SetVolume:
    SoundSet currentVolume
    showVolume := Round(currentVolume, 2)
    TrayTip, Volume, %showVolume%`%, , 17
    Return
    
    
    GetEWFInfo:
     Gosub, GetEWFParameters
     if (ewfstate = "ENABLED") {
      if (ewfcommand = "COMMIT") {
       Menu, Tray, Icon, Shell32.dll, %trayActive%
      } else {
       Menu, Tray, Icon, Shell32.dll, %trayInactive%
      }
      ewfsize := Round((ewfdata + ewfmapping)/1024/1024, 1)
      Menu, Tray, Tip, Memory in use for EWF: %ewfsize% MB
     }
    Return
    
    
    myTimer:
     ; if ( A_TimeIdle > 10*60*1000 ) {
     ;  Run, rundll32.exe user32.dll`, LockWorkStation
     ; }
     Gosub, GetEWFInfo
    Return
    
     
    jfitie, Nov 23, 2008
    #20
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.