GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - sangafabrice/notify-connect: A utility to notify of the administrative state of an NIC, the media link, in addition to the network connection state.

BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
Readme.md
Readme.md
 
 
notify-connect-template.wsc
notify-connect-template.wsc
 
 
setup.vbs
setup.vbs
 
 

Repository files navigation

The notify connect component

Author: Fabrice Sanga


The component augments functionalities to the network system icon. It helps notify of the status of the network connexion and of the network interface card (NIC). It is not limited to the binary value, either connected or no internet. The notification is a visual icon that changes form according to the following states:

  • Disabled: The administrative status of the NIC is disabled
  • Disconnected: The media connecting the NIC to the router is disconnected
  • NoInternet: The internet access is interrupted
  • Connected: The workstation has access to the internet.

An example of use:

With CreateObject("CustomUI.Shuffler")
    .NetAdapterID = "Ethernet"                              '(1)
    .ShortcutPath = "..\Start Menu\Programs\Ethernet.lnk"   '(2)
    .IconsDir = "\Path\to\ConnectionStatusIcons"            '(3)
    While True
        Wscript.Sleep 1000
        CurrentState = .NetStatus                           '(4)
        .ChangeShortcutIcon                                 '(5)
        While CurrentState = .NetStatus : Wend
    Wend
End With

(1) NetAdapterID is the name of the network connection ID of the adapter

(2) ShortcutPath is the path to the link to the notifier that is shortcut link

(3) IconsDir is the path to the directory containing the icons, each named by the state it represents.

(4) NetStatus returns the state of the connexion

(5) ChangeShortcutIcon change the shortcut icon

The filesystem:

    ConnectionStatusIcons
        |--Connected.ico
        |--Disabled.ico
        |--Disabled.ico
        |--NoInternet.ico

About

A utility to notify of the administrative state of an NIC, the media link, in addition to the network connection state.

Topics

network-interface-cardvbscriptwindows-script-componentwmi-query

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.