Quantcast
Channel: AutoHotkey Community
Viewing all articles
Browse latest Browse all 579

Ich brauche Hilfe • Re: Abfrage der Network-Adapter

$
0
0
Hi,
vielleicht über Powershell:

CODE:

#NoEnv
#Singleinstance Force

LANoderWLAN()

LANoderWLAN(){
Clip := ClipboardAll
RunWait,% "Powershell Get-NetConnectionProfile | Select-Object InterfaceAlias | Clip",,Hide
If ((Interface := Trim(StrSplit(Clipboard, "`n", "`r").4)) = "Ethernet")
MsgBox,0,% Interface, Du bist mit LAN-Verbunden
Else
MsgBox,0,% Interface, Du bist mit Wi-Fi verbunden!

Clipboard := Clip
Clip := ""
}


Wenn die Netzwerkkategorie "Wi-Fi" anzeigt, dann ist es WLAN.
Wenn die Netzwerkkategorie "Ethernet" anzeigt, dann ist es LAN.

Statistics: Posted by KHA — Today, 10:27



Viewing all articles
Browse latest Browse all 579

Trending Articles