Processing Ajax...

Title

Message

Confirm

Confirm

Confirm

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure?

User Image
Krupa Solanki
6 discussion posts
Hi guys! I bought displayfusion and I am currently using it with two monitor profiles and love it! I have two computer monitors set up for computing, and the third monitor is a TV in another room. I have a wireless keyboard to control the computer from the TV. It's great because using the official Microsoft xbox 360 wireless controller receiver for windows, I can enjoy my PC games with the cinematic experience of my surround sound system.

I have monitor profiles set up to Ctrl+Alt+1 and Ctrl+Alt+2. The first profile disables the third monitor (external TV) and the second one enables the external TV and makes it the main monitor and the living room sound system the main playback device for when we want to use Windows to play games on the TV. Basically, I press Ctrl+Alt+2, sync the controllers with the xbox 360 wireless receiver for windows, and I'm good to go!

The problem arises when we want to play the actual xbox 360. When the computer is on, we can't sync the controllers to our actual Xbox 360 again because they auto join the computer's wireless receiver. This is why I want a script to disable the wireless controller receiver (USB device) whenever I switch the monitor profile 1 (press Ctrl+alt+1) and reenable the USB device whenever I switch to monitor profile 2 (press Ctrl+alt+2). However, I don't know the first thing about scripting. Could someone help me make this script to perfect my setup?? If you need the maps of my USB ports, just let me know, but I prefer to disable the device directly rather than disable the specific USB port it sits in because the wireless keyboard is connected to the same USB port.

Thank you so much in advance!
Dec 5, 2014 (modified Dec 5, 2014)  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Looks like we might be able to do this with a combination of a DisplayFusion scripted function to send a command using this app: http://www.nirsoft.net/utils/device_manager_view.html and then switching profiles. When I've got some time, I'll test it out and whip up a script for you :)

Thanks!
Dec 9, 2014  • #2
User Image
Krupa Solanki
6 discussion posts
OK that sounds great! Thanks a lot! Let me know when you are free! You guys are the best!
Dec 20, 2014 (modified Dec 20, 2014)  • #3
User Image
Collin Chaffin
69 discussion posts
I use the following to do exactly that (outside of DF) in a batch script which enables "external" NICs and disables "Internal" NICs.

I'll play with this though my method you will have to do a one-time do into devmgr.msc open the device details to get that device's ID.

As an example (I'm stubborn and still use a pretty old Nvidia machine that has 2 gigabit NICs.....to disable the "internal" I do this:

devcon disable @PCI**2411E6FE^&2^&90*

and then to enable the "external" I then do this:

devcon enable @PCI**2411E6FE^&2^&88*

and devcon is a built-in non-3rd-party command on all newer OS' so I think Keith will like that...... :)

Since I'm really bored and sick right now and coding helps me relax, let me work on this for you. Heck, I might as well start re-coding everything to DF now that is supports C#, lol. Whoever thought that idea up, friggin kudos to you it just moved your product forward light years!
Collin Chaffin's profile on WallpaperFusion.com
Dec 22, 2014  • #4
User Image
Collin Chaffin
69 discussion posts
Hey Krupa,

On the machine in question where you want to toggle your wifi, can you copy and paste this command into a CMD window and then select the output and paste it here? It will contain the dev ID for the device you wish to toggle with DF.

devcon find @PCI** | find /i "BRAND-OF-WIFI"

Where "BRAND-OF-WIFI" is the brand of your adapter in question (still surrounded by double-quotes. If your wifi adapter is not internal but USB, instead, past this command and return the results:

devcon find @USB** | find /i "BRAND-OF-WIFI"

Once you know what the identifier is, it should be pretty easy and I'll post the script specific to you here and then publish a generic version with instructions on how the DF users' can retrieve and fill in the ID into the function.

Thanks.

Collin
Collin Chaffin's profile on WallpaperFusion.com
Dec 22, 2014  • #5
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)