View Single Post
  #1  
Old 04-13-2015, 05:43 AM
e2script e2script is offline
Registered User
 
Join Date: Sep 2014
Posts: 34
Changing selected text before searching

Hi,

Sorry for the badly worded title.

I am running the script described in 4.1 (Performing a Web Search with Selected Text) in this .pdf:
https://www.vandyke.com/support/tips...essentials.pdf

I have modified the script a little bit and I am using the script to search for the OUI vendor over at aruljohn.com/mac.pl

So I have replaced the following:
Code:
' Now search on Google for the information.
g_strSearchBase = "http://www.google.com/search?hl=en&q="
with:
Code:
' Now search on Aruljohn for the information.
g_strSearchBase = "http://aruljohn.com/mac/"
The problem is that the Aruljohn page will only accept a format of AABBCCDDEEFF.

Aruljohn will accept the following: AABBCCDDEEFF
Aruljohn will not accept the following: AA:BB:CC:DD:EE:FF or AABB.CCDD.EEFF

If I copy a MAC-address from an extreme-switch or juniper-router the format will be AA:BB:CC:DD:EE:FF
If I copy a MAC-address from a cisco-router/switch the format will be AABB.CCDD.EEFF

What I want the script to do, before searching for the MAC-address on the Aruljohn page, is to remove the ":" and "." so that Aruljohn will accept the format.

How do I fix this?

Best regards,
e2script
Reply With Quote