Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
Move and/or Zoom with ease settings
Get the computer name of user
Real Time Vector Editor
ToolTips for Shockwave 3D
Cinemac
Fast Blur Algorithm
Set PlayBackMode Property of a Animated Gif Cast Member
Easy Mui
Read Text from a file
Puttin all functionality in one button behavior
 

 

 

Behavior Get browser versions

Added on 10/2/2000

 

Compatibilities:
D7 D8 PC Script

Required Xtras:
Buddy API

Rating:

Author: MediaMacros (website)

Returns the version of browsers on the system

on getAllBrowsers
  IE = baReadRegString( "SoftwareMicrosoftWindowsCurrentVersionApp Pathsiexplore.exe", "", "", "hkey_local_machine" )
  
  NS = baReadRegString( "SoftwareMicrosoftWindowsCurrentVersionApp Paths
etscape.exe", "", "", "hkey_local_machine" )
  browserList = [:]
  the itemDelimiter = "."
  if IE <> "" then
    versionIE = float((baFileVersion(IE).item[1] & "." & baFileVersion(IE).item[2]))
    if versionIE < 4.72 and versionIE > 3.0 then versionIE = 3.0
    addProp browserList, #IE, versionIE
  end if
  if NS <> "" then
    addProp browserList, #NS, float((baFileVersion(NS).item[1] & "." & baFileVersion(NS).item[2]))
  end if
  return browserList
end

on getBehaviorDescription me
  describe = "This returns a property list of the installed version of internet explorer or netscape navigator.  Call like this..." & return & "browserList = getAllBrowsers()"
  return describe
end

 


Contact

MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA

Send e-mail