Try
ToggleNic!
It's just a quick hack, using Windows' own network folder, but it works! I'm testing Vista, and I couldn't get the menu selction to work properly, but in XP you could remove the ; before WinMenuSelectItem and add a ; before Send.
Remember to change the nic= and hotkey= lines to match your system!
Skrommel
;ToggleNic.ahk
; Use a hotkey to toggle your network cards' enabled state.
; Change the line nic= below to match the names of your network connections, separated by comma.
; Change the hotkey= below using !=Alt ^=Ctrl +=Shift or #=Win followed by any other key.
; For more advanced hotkeys, check the AutoHotkey help file.
;Skrommel @2007
;Settings
nic=Lokal tilkobling ;Names of the network connections, separated by comma
hotkey=^F12 ;Ctrl-F12
;Program
#SingleInstance,Force
#NoEnv
DetectHiddenWindows,On
SetWinDelay,0
Hotkey,%hotkey%,START,On
TrayTip,ToggleNic,Hotkey: %hotkey%
Return
START:
TrayTip,ToggleNic,Toggling...
RunWait,::{7007ACC7-3202-11D1-AAD2-00805FC1270E},,Hide
Sleep,1000
WinSet,Transparent,0,ahk_class CabinetWClass,,Program Manager
WinMove,ahk_class CabinetWClass,,guix,guiy,,,Program Manager
WinShow,ahk_class CabinetWClass,,Program Manager
ControlGet,nics,List,Col1,SysListView321,ahk_class CabinetWClass,,Program Manager
Loop,Parse,nics,`n
{
If A_LoopField In %nic%
{
row:=A_Index-1
ControlFocus,SysListView321,ahk_class CabinetWClass,,Program Manager
ControlSend,SysListView321,{Home}{Down %row%},ahk_class CabinetWClass,,Program Manager
;WinMenuSelectItem,ahk_class CabinetWClass,,1&,1&,,,,,,Program Manager ;In XP, use this instead of the line below
Send,{Alt Down}f{Alt Up}{Enter}
Sleep,1000
}
}
WinClose,ahk_class CabinetWClass,,Program Manager
Return