Marking Frames with Network Monitor 3.4


Marking frames is a convenient way to temporarily flag a location in the trace you wish to keep track of during a troubleshooting session. But there is no built in way to mark frames in Network Monitor 3.4. However, using frame comments, coloring rules, and AutoHotkey, you can implement frame marking functionality.

How it Works

Color rules can be created using any general filter. This includes filtering the frame comment title which is exposed using the property FrameVariable.CommentTitle. By appending some text to the comment title, for example “m:red”, we can create color rules that display a color based on that text. What makes this seamless is AutoHotkey’s ability to read and control and UI by running scripts based on the keystrokes we define.

The Setup

Following these three simple steps will allow you to mark frames with Network Monitor 3.4.

  • Install AutoHotkey (it’s free) – (http://www.autohotkey.com/) If you haven’t used this tool before, you’ll be surprised at all the cool things it can do. You might find some other clever ways to automate your computer if you decide to become familiar with AutoHotkey and its scripting language. But this knowledge is not necessary in order to implement color marking with Network Monitor 3.4.
  • Download and Run AutoHotKey Script – Once you have AutoHotkey installed, you can download the AutoHotkey script I created. Once it’s downloaded, you can double-click it to run, as it should be automatically associated with AutoHotkey. Once it runs, you’ll see the AutoHotkey icon running in toolbar section of the taskbar. Now, it’s ready to look for the defined key strokes and should appropriately add strings to the comments for the frame you have selected. But we still need to setup the color rules so Network Monitor knows how to interpret those comment identifiers. If you want this to run every time you reboot your machine, you can place a shortcut to this file in your “Start Programs”.
  • Download Color Rules – The final step is to download this color rule file and import it into Network Monitor 3.4. Place this file into the Color Rules folder under Network Monitor 3 in your documents folder. Then open Network Monitor 3.4 and open a capture file. Click the Color Rules button which will open up the Options dialog for Color Rules. Make sure the “Always append new rules” is NOT selected so that the newly imported rules appear at the top of the list. This will give them the highest priority. Then select Open, My Sets, and click the MarkingColors set that you just copied.

clip_image001

As you can see, there are 6 color rules defined to identify various strings; m:cyan, m:orange, m:purple, m:green, m:yellow, m:blue and m:red. When the appropriate key strokes are hit, the comment title is modified to add the related text. This triggers the associated coloring rule based on the first match in the list above.

Marking Frames with Shift-F1

Now with the previous steps completed, you will be able to select one frame and mark it. For instance, to mark a frame with the first defined color, just press Shift+F1. This should make the frame show up with a red background. Pressing Shift+F2 will override the color and change it to blue. The associated comment will now end with m:blue. You can also remove any comment color tags by using Shift+F12 or the original keystroke that marked the frame.

I’ve also enabled a multi-level color marking scheme. By using Ctrl+F1, you still get a Red colored frame. But when you press Ctrl+F2, it appends m:blue and since that has a higher priority in the color list the frame is displayed with a blue background. Then by pressing Ctrl+F12, you can revert to the previous color. It will remove that last applied color and leave the m:red portion of the text in the comment. At this point the frame will revert to a red background.

If you’ve applied multiple levels of colors using the Ctrl+Function Key, you can use Shift+F12 to remove them all. Also all of these comment additions should not affect any preexisting comments you have created, unless there’s some text resembling the “m:color” type identifiers I used.

Color Marks the Spot

Marking frames can provide an easy way to track interesting parts of a trace as you navigating your way through complex network traffic. You can even jump to the next marked frame by looking for “m:” in the Find dialog (Ctrl+F) with the filter CommentTitle.Contains(“m:”). And while it’s not perfect, for instance you can’t select multiple frames and mark them all, it does provide a simple way to mark frames with color using key strokes.


Comments (10)

  1. Anonymous says:

    I can't say for sure what is going on.  But perhaps we can determine how far in the script we are getting by using the 'MsgBox "here"' command to determine how far you are getting in the script.  My guess is that for some reason Netmon is not getting activated or not getting the keystrokes.  Perhaps some other tool or program is getting in the way.

    In the netmon.ahk file, look for MarkColorOverwrite subroutine.  Then try to add the MsgBox for the first few lines and let me know how far it gets.  Perhaps that will give us a clue as to what is failing.

  2. Anonymous says:

    I've updated the script so that the keystrokes don't get stolen if Network Monitor is not in focus.  This way if another app uses Ctrl or Shift F1-F6, they will still work with those apps.

    Paul

  3. hassan sayed issa20014 says:

    thanks

  4. stefano says:

    Hi! Great idea, but i cannot make this work 🙁

    Color rules are fine, but there is something wrong with the script, which seems to be doing noting (not adding comments) even if autohotkey logs the keys being pressed..what might be happening?

  5. stefano says:

    Don't really know why, but it works only by removing the

    #IfWinActive, ahk_class Netmon

    command. This means i'm losing the keys being linked to other apps, is that right? (actually i don't bother too much)

  6. http://medicalnewz.altervista.org/ says:

    SEO write-ups have several benefits. Only one of them is getting back-links from Social websites and indices, but you should not neglect the result they have on the website’s popularity.
    http://medicalnewz.altervista.org/

  7. William Hill Casino Promotional Code says:

    The affected person physician told to his individual that upon inquiring to be sent house he had been assessed quite happy and therefore, had been requested to come returning to traveling tasks – Catch-22.

    http://www.promocodedatabase.co.uk/promo-code-william-hill-casino-200free/

  8. lil says:

    http://www.oakley–sunglasses.com.au/ Liying
    http://www.omegarelojes.es/ what
    http://www.nikefree5.net/ she http://www.supra-shoes.org/ can
    http://www.converse-shoes.net/ succeed miles?
    http://www.hollister.us.org/ In
    http://www.christianlouboutinshoes.ar.com/ addition
    http://www.tommy-hilfiger-canada.ca/ to
    http://www.jordan-shoes.com.co/ face
    http://www.nikemercurial.in.net/ child
    http://www.softball-bats.us/ over
    http://www.cheap-baseballbats.net/ nice,
    http://www.new-balance-schuhe.de/ but then
    http://www.nike-roshe-run.de/ there
    http://www.newbalance-shoes.org/ is http://www.yoga-pants.ca/ nothing
    http://www.jordanretro.org/ conceited capital it?
    http://www.uggsoutlet.com.co/ "Tapping!"
    http://www.louisvuitton.jp.net/ Knock
    http://www.mmoncler-outlet.com/ on
    http://www.newoutletonlinemall.com/ the
    http://www.burberryoutletonlinesale.in.net/ door
    http://www.poloralphlaurenoutlet.net.co/ rang again.
    http://www.reebok.com.de/ The hungry
    http://www.toryburchoutletsale.in.net/ man
    http://www.converse.com.de/ with http://www.ugg-boots.us.org/ a little harder
    http://www.ralphlaurenonlineshop.de/ this
    http://www.designerhandbagsoutlet.com.co/ time
    http://www.longchamp.com.de/
    http://www.louboutin.jp.net/ probably on
    http://www.michael-kors-taschen.com.de/ the
    http://www.rayban.org.es/ door with
    http://www.uptocoachoutlet.com/ his fist
    http://www.nikefree-run.net/ to pound
    http://www.michael–kors.us.com/ in."Which
    http://www.timberlandshoes.com.co/ turtle grandson?"
    http://www.tommy-hilfiger.com.de/ Liying in
    http://www.cheapshoes.com.co/ the
    http://www.montblanc–pens.in.net/ kiln outlet."On
    http://www.adidas-superstar.de/ the door
    http://www.p90xworkout.in.net/ open
    http://www.burberryoutletonline.gb.net/ ."
    http://www.nike-air-max.us/ He http://www.pradahandbags.com.co/ teeth
    http://www.bcbg-max-azria.ca/ child
    http://www.michael-kors.com.co/ must knock
    http://www.christian–louboutin.in.net/ down
    http://www.ralph-lauren.org.uk/ the
    http://www.tommy-hilfiger.co.nl/ next."You know
    http://www.hollistercanada.ca/ back http://www.oakley.org.es/ Mile",
    http://www.cheap-jordans.net/ "door
    http://www.northface.us.org/ open http://www.maccosmetics.net.co/ !"
    http://www.ugg-boots-australia.com.au/ "I
    http://www.michaelkorsoutlets-online.us.com/ have
    http://www.nike-shoes-canada.ca/ a
    http://www.toms-shoes-outlet.org/ headache! Kang
    http://www.pradaoutlet.com.co/ could
    http://www.nikerosherun.us/ not
    http://www.zxcoachoutlet.com/ make!""Well
    http://www.nikestore.us/ you open the
    http://www.burberryonlineshop.de/ door
    http://www.michaelkors.co.nl/ mile

  9. chasse au trésor says:

    We offer a truly cost-effective SEO service for only $129 monthly and shift you up online ranking positions each 30 days or you don’t pay. We even business free SEO in exchange for percentage on web revenue with certain companies. Just contact to see if
    you are eligible. http://www.ludeek.com/

  10. read more says:

    That’s hard when average real property costs in some US city areas are above 45% of revenue. MIT and Stanford lecturer Merton calls this issue in financing pension "one of the most popular international issues.
    http://shiftingproperty.nation2.com/