Jump to content


Photo

How to switch wifi networks from tray icon with SystemBarEx or BlackBoxBar?

systembarex wifi

  • Please log in to reply
1 reply to this topic

#1 porksauce

porksauce

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 12 December 2015 - 08:35 PM

Hi, All -- I'm running bbZero 1.18.0-rc6, with SystemBarEx on Windows 10.  I'm not sure how to connect to an available wifi connection.  The wifi icon appears in the Tray, but left-clicking or right-clicking on it doesn't do anything.  If I run BlackBoxBar, left-clicking also doesn't do anything,  but right-clicking will bring up these options:  a) Troubleshoot Problems, and B) Open Network and Sharing Center.

 

The ideal behavior would be for a list of possible wifi networks to pop up when I left-click the icon in the tray, and then I could choose one to connect to it.  What do other people do for this?

 

Interestingly, if I go to Control Panel->Network and Internet and choose "Connect to a network" I get an error message saying "ms-settings:network...The wait operation timed out."  Presumably that doesn't like the fact that Explorer shell is disbaled.  So I can't switch networks the easy way through the icon, and can't even do it the hard way through control panel.  Kind of stuck here - any help would be greatly appreciated.

 

I'm really loving bbZero apart from this one issue! 

 

EDIT:  I can "Lock" to get back to the login screen, and then use the wifi icon there to switch.  That's a decent enough work-around that I can continue to use bbZero, but it would be great if I could interact with the icon in the SystemBarEx tray that way.



#2 Cea

Cea

    Newbie

  • Members
  • Pip
  • 7 posts

Posted 17 December 2015 - 04:12 PM

I'm not familiar with Win10 and I speak about Win7 here.

First, your icon works as expected : it shows you [font="'courier new', courier, monospace;"]Open Network & Sharing Center[/font] which is the proper operation of that icon.

 

If you want to switch from either wireless network, i.e. from KNOWN wireless, you can do it from [font="'courier new', courier, monospace;"].CMD[/font] or [font="'courier new', courier, monospace;"].BAT[/font] file. You can then bind those [font="'courier new', courier, monospace;"].CMD[/font] file to [font="'courier new', courier, monospace;"]bbIconBox [/font]or [font="'courier new', courier, monospace;"]BlackBoxBar[/font], etc.

 

you only need to know the profile you wan tto switch to.

 

The command to insert in a .CMD file is the following:

 

[font="'courier new', courier, monospace;"]@echo off[/font]

[font="'courier new', courier, monospace;"]netsh wlan connect name=<the_profile_you_want_to_connect_to>[/font]

 

See that page for full information including how to get the profile name: 

http://www.nextofwin...ne-in-windows-7

 

you can use a command line for debugging purpose if necessary.

 

Other track which led me to ... nothing:

 

I was close with:

 

[font="'courier new', courier, monospace;"]C:> control /name Microsoft.NetworkAndSharingCenter[/font]

 

I just miss the [font="'courier new', courier, monospace;"]/page XXXXXX[/font] name I could put at the end of the above command which would pop up that little window you're asking for. Unfortunately, neither [font="'courier new', courier, monospace;"]Advanced [/font]nor [font="'courier new', courier, monospace;"]ShareMedia [/font](from here), the only 2 available pages, show the window you want to see.

 

Full syntax is, e.g. :

 

[font="'courier new', courier, monospace;"]control /name Microsoft.NetworkAndSharingCenter /page Advanced[/font]

 

Actually from the NetworkSharingCenter command line, you can click the "Connect to a network" which will pop up from the taskbar all available wireless network in the vicinity. I guess there is a "/page" (a shortcut) for it but can't find it ... I'm finally not sure it even exists.

 

Hope it (somewhat) helps ...


  • pitkon likes this




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users