Open bartsipes opened 11 years ago
Exactly right.
Scott Hanselman
On Jun 6, 2013, at 9:25 PM, Bart Sipes notifications@github.com wrote:
"I have a WifiProfile class that's basic, but it wouldn't be hard to put a WinForms wrapper around this thing. It would be a fun challenge to DUPLICATE the Win7 dialog exactly."
Are you referring to the dialog that comes up after clicking the 5 bar wireless icon in the system tray on Win7? If so, what exactly are you thinking of for the UI experience?
I'm guessing you would have an icon in the system tray for the Wifi manager, clicking on it would open an equivalent dialog containing the the collapsible "Wireless Network Connection" section from the Win7 dialog and all wireless networks would then be displayed.
Thoughts?
— Reply to this email directly or view it on GitHub.
It might be a good idea to find a way to silently extract the netsh output in NetShWlanWrapper. The command window noticeably opens and closes when interacting with the tray UI.
Ya, was working on that literally just now. Google says this is a problem with WPF apps. I was investigating hacks then got a headache.
On Jun 10, 2013, at 8:29 AM, Sam Raudabaugh notifications@github.com wrote:
It might be a good idea to find a way to silently extract the netsh output in NetShWlanWrapper. The command window noticeably opens and closes when interacting with the tray UI.
— Reply to this email directly or view it on GitHub.
Yeah, I noticed the same thing. I just added a line to set Process.StartInfo.CreateNoWindow = true.
@raudabaugh you're beating me to the punch on this. I'll have to check out your here soon when I get some free time again.
@shanselman Simply changing the p.StartInfo.CreateNoWindow
from false
to true
in NetShWlanWrapper.cs does the trick for me at least, completely headache free. You can then also remove the line where you set the WindowStyle to hidden.
I have similar thing, I think, in my network powershell module:
https://github.com/majkinetor/posh/tree/master/MM_Network
See, -Wireless functions.
You can get and delete and even create:
PS> Get-WirelessNetwork | ft
SSID Authentication Encryption Signal Radiotype Channel BSSID Interface Status
---- -------------- ---------- ------ --------- ------- ----- --------- ------
Bick92 WPA-Personal CCMP 83 802.11g 10 24:1f:a0:6d:da:ec Wireless Network Connection
DejanTP-Link WPA2-Personal CCMP 36 802.11n 11 d8:5d:4c:a4:f8:90 Wireless Network Connection
003300 WPA2-Personal CCMP 24 802.11n 1 00:71:c2:35:31:56 Wireless Network Connection
ZTE80B1E2 Open None 20 802.11n 6 54:be:53:80:99:f6 Wireless Network Connection
554c43 WPA2-Personal CCMP 10 802.11n 11 d8:97:ba:89:c3:a6 Wireless Network Connection
InatiasNet 2 WPA2-Personal CCMP 10 802.11n 1 30:b5:c2:44:f6:6f Wireless Network Connection
Marina WPA-Personal CCMP 4 802.11n 3 24:1f:a0:3a:45:d8 Wireless Network Connection
5f4a6b WPA2-Personal CCMP 4 802.11n 1 00:71:c2:32:7f:6c Wireless Network Connection
KBCnet_Hotspot Open None 4 802.11b 3 d4:ca:6d:8c:84:8d Wireless Network Connection
f8b630 WPA2-Personal CCMP 2 802.11n 11 54:be:f7:56:a5:e3 Wireless Network Connection
UniFi WPA2-Enterprise CCMP 2 802.11n 1 56:be:f7:14:ce:4d Wireless Network Connection
8f8788 WPA2-Personal CCMP 2 802.11n 6 dc:fe:07:2d:85:22 Wireless Network Connection
majkinetor WPA2-Personal TKIP Wireless Network Connection Connected
c08484 WPA2-Personal CCMP 0 802.11n 1 60:02:92:27:58:97 Wireless Network Connection
PS> Get-WirelessNetwork maj* | Remove-WirelessNetwork
"I have a WifiProfile class that's basic, but it wouldn't be hard to put a WinForms wrapper around this thing. It would be a fun challenge to DUPLICATE the Win7 dialog exactly."
Are you referring to the dialog that comes up after clicking the 5 bar wireless icon in the system tray on Win7? If so, what exactly are you thinking of for the UI experience?
I'm guessing you would have an icon in the system tray for the Wifi manager, clicking on it would open an equivalent dialog containing the the collapsible "Wireless Network Connection" section from the Win7 dialog and all wireless networks would then be displayed.
Thoughts?