2012-12-30, 10:38
Toshiba bluetooth and Wiimotes - reconnection script for use with Advanced Launcher in XBMC.
First, many thanks to Angelscry for Advanced Launcher (and his patient support) and to all the other users who placed documentation on this and other forums. I have been working to get my Nintendo games to run in XBMC with advanced launcher and my standard wiimotes. Just over christmas, I have put enough pieces in place so that I have Confluence Lite Main Menu of Games with submenus of Wii, Nintendo 64 and NES games. All these games will run using our old standard Wii remotes running Toshiba bluetooth.
I plan to post how I got the NES part to work, in another post. THAT was tricky and thanks again to Angelscry for explaining how to set up Shortcut Lnk files in a launcher. That was key to getting NES running. He put up a great YouTube video that explained how to do it, well.
http://www.youtube.com/watch?v=JyfRa7gygEc
One of the early challenges involved keeping the wiimotes connected and paired with my XBMC pc. Eventually, I gave up trying to set up some automated function that would monitor and re-pair my wiimotes. So, as a next best thing, I found a way to use the Autoit scripting tool, to easily re-pair my wiimotes if they somehow got unb-paired or ran out of battery power. Below is how I did it.
My equipment and software
Wii Motes - standard. I do not have motion plus remotes
Replacement Sensor bar and a plug in AC adapter. I used an old iphone AC adapter that I had laying around the house.
Rechargeable batteries and stand - I use the one below. Nice price but amazon has odd message about it not being shipped correctly, so is not available
Windows 7 professional 64 bit
Generic bluetooth dongle - Mine 'looks' like this one. Is an old one I had laying around the house for years.
Toshiba bluetooth stack driver version 8.00.03 - need to get the non-trial version.
Auto it scripting tool - select the AutoIt Full Installation version, the first one, on the download page
Auto it editor - full version - the installer above contains a stripped down editor (missing help files and some helpful plug ins). Download and install the 2nd item on the download page, the AutoIt Script Editor.(Customised version of SciTE with lots of additional coding tools for AutoIt)
Dolphin - wii emulator - I use version 3.0-845 - for it's bluetooth refreshing capability - You can find this version in the archives. Perhaps a newer version will work too but this version worked for me.
Set up the hardware
Plug in the generic bluetooth dongle. Windows 7 will install the generic windows (widcomm) drivers. Then unzip the toshiba bluetooth driver install files. open and read the readme.txt file. Follow the install instructions. I installed v80003T_20101215_x64.exe and copied the other included file to the directory noted in the readme file. Reboot your PC so the Toshiba drivers are used. Double click on Start - Toshiba - Bluetooth - Bluetooth Settings and you should see the Toshiba bluetooth application.
Next you need to connect your wii motes. Click Bluetooth - New Connection and add new connection Wizard appears. Just keep pressing next and follow the instructions to pair your wii motes. Remember you need to Press your wiimotes 1 and 2 buttons at the same time so your PC can discover them. All the LED lights should begin to blink. If the PC finds and pairs the wii mote, an device with a name like Nintento RVL-CNT-01 appears in the Bluetooth Settings application window. If not, repeat the steps again. Follow this same procedure for up to 4 wii motes.
To use my script below, you must rename your wii mote device names in the Toshiba Bluetooth Settings application. Right click on the current wii mote name, select Rename and enter a new name. Be sure to put a sticker with the new wiimote name on the wiimote, so you know the name you assigned to each of your individual wiimotes. The upcoming script makes use of the new unique names you assign. You need each name to begin with a unique number or letter. You could call them 1-wiimote, 2-wiimote, etc. I elected to use the last 2 characters of the Bluetooth Device Address that you can see by selecting View - Details and checking the Bluetooth Device Address column. This is a unique number assigned at manufacturing time. For my 4 wiimotes, these gave me a way to assign unique names (6A-REMOTE, 89-REMOTE, etc). Again, this naming comes in handy, since whenever I reboot my PC, the active pairing is gone, but with specific names for each wii mote, I can use the autoit script below to quickly reactivate the correct pairing.
Set up the sensor bar.
Basically, I put this new sensor bar in the same position as my wii sensor bar. Luckily, I had an electric outlet nearby the big tv. Note the 'sensor' bar is just IR LEDs that the Wii Remote uses to triangulate. The bar has zero intelligence so the replacement does not need to be plugging into the wii console. It just needs power to turn on the two IR lights in the sensor bar.
set up the software
Install the Dolphin software you downloaded from link above. I basically just watched this video to learn how to do it.
Also, check the dolphin FAQs if dolphin fails to launch for you.
- Note, I DID need to install the VCOMP100.DLL and, I think, the directx runtime too. See FAQ page
Then, install Autoit scripting tool and the full editor. I did most my work by running the editor. You can test your scripts by saving your file and pressing F5 in the Full Editor to launch your script. If errors happen, you'll see a message in the bottom window of the editor. If I make changes to a script, I find I need to save and close and reload the changed script in the full editor to run a script again. Also, when you have your script working as desired, you can press F7 and the editor will launch the Autoit Compiler which will make an EXE file of your script, that you can link into XBMC as a Stand Alone Launcher
http://www.gwenael.org/forum/viewtopic.php?id=3
Here's my autoit script that handles the semi-automated process of reconnecting my 4 wii motes.
You will need to change several entries in the script that reflect my wii mote names and also the file paths that I have set up on my XBMC pc. You will need to make my script match how your system and files are configured.
OK - my post got too long with my code included. I will post my script in a post that should follow quickly after this one.
Once you have changed my script to fit your configuration, file paths etc and have successfully run your script by pressing F5 in the Autoit full editor, create an exe version by pressing F7 and place the exe file in a folder that will not be changed. Follow the Advanced Launcher steps to create a Standalone launcher for your compiled exe file and put that advanced launcher in your favorites and then, perhaps, add the stand alone launcher to a submenu or main menu for easy access.
You should be good to go!
Toshiba bluetooth and Wiimotes - reconnection script for use with Advanced Launcher in XBMC. (part 2)
Here's my Auto-IT script that is mentioned in my post earlier. It is non-optimized. Someone with better understanding of variables and looping could have done this much more efficiently.
Run("C:\Program Files (x86)\Toshiba\Bluetooth Toshiba Stack\ECCenter1.exe", "", @SW_MAXIMIZE)
WinWaitActive("Bluetooth Settings")
; Prompt the user to run the script - use a Yes/No/Cancel prompt (3 - see help file)
$answer = MsgBox(3, "Does remote 6A need to be reconnected?", "Press Yes to reconnect, No to skip, Cancel to exit.")
; Check the user's answer to the prompt (see the help file for MsgBox return values)
; If "Cancel" was clicked (2) then exit the script
If $answer = 2 Then
SplashTextOn("Reconnect", "OK Bye.", -1, 50, -1, -1, 4, '')
Sleep(3000)
SplashOff()
Send("!{F4}") ;close bluetooth app
Exit
EndIf
; Check the user's answer to the prompt (see the help file for MsgBox return values)
; If "Yes" was clicked (6) then reconnect
If $answer = 6 Then
Send("{F10}") ;click on menu bar
Send("{RIGHT}") ;move to view
Send("{DOWN 3}") ; move to list
Send("{ENTER}") ; click list to change the view
Sleep(1000) ;1 second for the view to update
Send("{6}") ;click to move to your 6A-remote ; may want to enhance later to be a variable and loop thru unconnected
Send("+{F10}") ;right click to open menu
Send("{DOWN}") ; to move to Connect option on right click menu
Send("{ENTER}") ;to activate the Connect dialog
SplashTextOn("Press the buttons", "Press the 1 and 2 buttons on the 6A remote", -1, 50, -1, -1, 4, '')
Sleep(3000)
SplashOff()
Send("{ENTER}") ;to get Toshiba to look for selected remote.
Sleep(6000)
EndIf
; Prompt the user to run the script - use a Yes/No/Cancel prompt (3 - see help file)
$answer = MsgBox(3, "Does remote 32 need to be reconnected?", "Press Yes to reconnect, No to skip, Cancel to exit.")
If $answer = 2 Then
Run("E:\Dolphin3.0-835\Dolphin.exe", "", @SW_MAXIMIZE) ;run dolphin for my current version - need to make path generic for the future
WinWaitActive("Dolphin 3.0-845-dirty") ;wiat for 1st window to appear
; note: need to change the dolphin hotkey for pause from F10 to something else. in Dolphin - Options, Hotkey Settings, click on pause F10 Cell, then hit spacebar, then have 3 seconds to kepress the replacement you want. I chose control-p.
Send("{F10}") ;click on menu bar
Send("{RIGHT 2}") ;move to options
Send("{DOWN 5}") ; move to wiimote settings
Send("{ENTER}") ; click to open wiimote settings
Sleep(1000)
Send("{ENTER}") ; click to click OK and close wiimote settings
Send("!{F4}") ;close Dolphin app
SplashTextOn("Reconnect", "OK Bye.", -1, 50, -1, -1, 4, '')
Sleep(3000)
SplashOff()
Send("!{F4}") ;close bluetooth app
Exit
EndIf
If $answer = 6 Then
Send("{F10}") ;click on menu bar
Send("{RIGHT}") ;move to view
Send("{DOWN 3}") ; move to list
Send("{ENTER}") ; click list to change the view
Sleep(1000) ;1 second for the view to update
Send("{3}") ;click to move to your 32-remote ; may want to enhance later to be a variable and loop thru unconnected
Send("+{F10}") ;right click to open menu
Send("{DOWN}") ; to move to Connect option on right click menu
Send("{ENTER}") ;to activate the Connect dialog
SplashTextOn("Press the buttons", "Press the 1 and 2 buttons on the 32 remote", -1, 50, -1, -1, 4, '')
Sleep(3000)
SplashOff()
Send("{ENTER}") ;to get Toshiba to look for selected remote.
Sleep(6000)
EndIf
$answer = MsgBox(3, "Does remote 89 need to be reconnected?", "Press Yes to reconnect, No to skip, Cancel to exit.")
If $answer = 2 Then
Run("E:\Dolphin3.0-835\Dolphin.exe", "", @SW_MAXIMIZE) ;run dolphin for my current version - need to make path generic for the future
WinWaitActive("Dolphin 3.0-845-dirty") ;wiat for 1st window to appear
; note: need to change the dolphin hotkey for pause from F10 to something else. in Dolphin - Options, Hotkey Settings, click on pause F10 Cell, then hit spacebar, then have 3 seconds to kepress the replacement you want. I chose control-p.
Send("{F10}") ;click on menu bar
Send("{RIGHT 2}") ;move to options
Send("{DOWN 5}") ; move to wiimote settings
Send("{ENTER}") ; click to open wiimote settings
Sleep(1000)
Send("{ENTER}") ; click to click OK and close wiimote settings
Send("!{F4}") ;close Dolphin app
SplashTextOn("Reconnect", "OK Bye.", -1, 50, -1, -1, 4, '')
Sleep(3000)
SplashOff()
Send("!{F4}") ;close bluetooth app
Exit
EndIf
If $answer = 6 Then
Send("{F10}") ;click on menu bar
Send("{RIGHT}") ;move to view
Send("{DOWN 3}") ; move to list
Send("{ENTER}") ; click list to change the view
Sleep(1000) ;1 second for the view to update
Send("{8}") ;click to move to your 89-remote ; may want to enhance later to be a variable and loop thru unconnected
Send("+{F10}") ;right click to open menu
Send("{DOWN}") ; to move to Connect option on right click menu
Send("{ENTER}") ;to activate the Connect dialog
SplashTextOn("Press the buttons", "Press the 1 and 2 buttons on the 89 remote", -1, 50, -1, -1, 4, '')
Sleep(3000)
SplashOff()
Send("{ENTER}") ;to get Toshiba to look for selected remote.
Sleep(6000)
EndIf
$answer = MsgBox(3, "Does remote 96 need to be reconnected?", "Press Yes to reconnect, No to skip, Cancel to exit.")
If $answer = 2 Then
Run("E:\Dolphin3.0-835\Dolphin.exe", "", @SW_MAXIMIZE) ;run dolphin for my current version - need to make path generic for the future
WinWaitActive("Dolphin 3.0-845-dirty") ;wiat for 1st window to appear
; note: need to change the dolphin hotkey for pause from F10 to something else. in Dolphin - Options, Hotkey Settings, click on pause F10 Cell, then hit spacebar, then have 3 seconds to kepress the replacement you want. I chose control-p.
Send("{F10}") ;click on menu bar
Send("{RIGHT 2}") ;move to options
Send("{DOWN 5}") ; move to wiimote settings
Send("{ENTER}") ; click to open wiimote settings
Sleep(1000)
Send("{ENTER}") ; click to click OK and close wiimote settings
Send("!{F4}") ;close Dolphin app
SplashTextOn("Reconnect", "OK Bye.", -1, 50, -1, -1, 4, '')
Sleep(3000)
SplashOff()
Send("!{F4}") ;close bluetooth app
Exit
EndIf
If $answer = 6 Then
Send("{F10}") ;click on menu bar
Send("{RIGHT}") ;move to view
Send("{DOWN 3}") ; move to list
Send("{ENTER}") ; click list to change the view
Sleep(1000) ;1 second for the view to update
Send("{9}") ;click to move to your 6A-remote ; may want to enhance later to be a variable and loop thru unconnected
Send("+{F10}") ;right click to open menu
Send("{DOWN}") ; to move to Connect option on right click menu
Send("{ENTER}") ;to activate the Connect dialog
SplashTextOn("Press the buttons", "Press the 1 and 2 buttons on the 96 remote", -1, 50, -1, -1, 4, '')
Sleep(3000)
SplashOff()
Send("{ENTER}") ;to get Toshiba to look for selected remote.
Sleep(6000)
EndIf
Send("!{F4}") ;close Toshiba bluetooth app
Run("E:\Dolphin3.0-835\Dolphin.exe", "", @SW_MAXIMIZE) ;run dolphin for my current version - need to make path generic for the future
WinWaitActive("Dolphin 3.0-845-dirty") ;wiat for 1st window to appear
; note: need to change the dolphin hotkey for pause from F10 to something else. in Dolphin - Options, Hotkey Settings, click on pause F10 Cell,
; then hit spacebar, then have 3 seconds to keypress the replacement you want. I chose control-p.
Send("{F10}") ;click on menu bar
Send("{RIGHT 2}") ;move to options
Send("{DOWN 5}") ; move to wiimote settings
Send("{ENTER}") ; click to open wiimote settings
Sleep(1000)
Send("{ENTER}") ; click to click OK and close wiimote settings
Send("!{F4}") ;close Dolphin app
Exit ; to exit the script
First, many thanks to Angelscry for Advanced Launcher (and his patient support) and to all the other users who placed documentation on this and other forums. I have been working to get my Nintendo games to run in XBMC with advanced launcher and my standard wiimotes. Just over christmas, I have put enough pieces in place so that I have Confluence Lite Main Menu of Games with submenus of Wii, Nintendo 64 and NES games. All these games will run using our old standard Wii remotes running Toshiba bluetooth.
I plan to post how I got the NES part to work, in another post. THAT was tricky and thanks again to Angelscry for explaining how to set up Shortcut Lnk files in a launcher. That was key to getting NES running. He put up a great YouTube video that explained how to do it, well.
http://www.youtube.com/watch?v=JyfRa7gygEc
One of the early challenges involved keeping the wiimotes connected and paired with my XBMC pc. Eventually, I gave up trying to set up some automated function that would monitor and re-pair my wiimotes. So, as a next best thing, I found a way to use the Autoit scripting tool, to easily re-pair my wiimotes if they somehow got unb-paired or ran out of battery power. Below is how I did it.
My equipment and software
Wii Motes - standard. I do not have motion plus remotes
Replacement Sensor bar and a plug in AC adapter. I used an old iphone AC adapter that I had laying around the house.
Rechargeable batteries and stand - I use the one below. Nice price but amazon has odd message about it not being shipped correctly, so is not available
Windows 7 professional 64 bit
Generic bluetooth dongle - Mine 'looks' like this one. Is an old one I had laying around the house for years.
Toshiba bluetooth stack driver version 8.00.03 - need to get the non-trial version.
Auto it scripting tool - select the AutoIt Full Installation version, the first one, on the download page
Auto it editor - full version - the installer above contains a stripped down editor (missing help files and some helpful plug ins). Download and install the 2nd item on the download page, the AutoIt Script Editor.(Customised version of SciTE with lots of additional coding tools for AutoIt)
Dolphin - wii emulator - I use version 3.0-845 - for it's bluetooth refreshing capability - You can find this version in the archives. Perhaps a newer version will work too but this version worked for me.
Set up the hardware
Plug in the generic bluetooth dongle. Windows 7 will install the generic windows (widcomm) drivers. Then unzip the toshiba bluetooth driver install files. open and read the readme.txt file. Follow the install instructions. I installed v80003T_20101215_x64.exe and copied the other included file to the directory noted in the readme file. Reboot your PC so the Toshiba drivers are used. Double click on Start - Toshiba - Bluetooth - Bluetooth Settings and you should see the Toshiba bluetooth application.
Next you need to connect your wii motes. Click Bluetooth - New Connection and add new connection Wizard appears. Just keep pressing next and follow the instructions to pair your wii motes. Remember you need to Press your wiimotes 1 and 2 buttons at the same time so your PC can discover them. All the LED lights should begin to blink. If the PC finds and pairs the wii mote, an device with a name like Nintento RVL-CNT-01 appears in the Bluetooth Settings application window. If not, repeat the steps again. Follow this same procedure for up to 4 wii motes.
To use my script below, you must rename your wii mote device names in the Toshiba Bluetooth Settings application. Right click on the current wii mote name, select Rename and enter a new name. Be sure to put a sticker with the new wiimote name on the wiimote, so you know the name you assigned to each of your individual wiimotes. The upcoming script makes use of the new unique names you assign. You need each name to begin with a unique number or letter. You could call them 1-wiimote, 2-wiimote, etc. I elected to use the last 2 characters of the Bluetooth Device Address that you can see by selecting View - Details and checking the Bluetooth Device Address column. This is a unique number assigned at manufacturing time. For my 4 wiimotes, these gave me a way to assign unique names (6A-REMOTE, 89-REMOTE, etc). Again, this naming comes in handy, since whenever I reboot my PC, the active pairing is gone, but with specific names for each wii mote, I can use the autoit script below to quickly reactivate the correct pairing.
Set up the sensor bar.
Basically, I put this new sensor bar in the same position as my wii sensor bar. Luckily, I had an electric outlet nearby the big tv. Note the 'sensor' bar is just IR LEDs that the Wii Remote uses to triangulate. The bar has zero intelligence so the replacement does not need to be plugging into the wii console. It just needs power to turn on the two IR lights in the sensor bar.
set up the software
Install the Dolphin software you downloaded from link above. I basically just watched this video to learn how to do it.
Also, check the dolphin FAQs if dolphin fails to launch for you.
- Note, I DID need to install the VCOMP100.DLL and, I think, the directx runtime too. See FAQ page
Then, install Autoit scripting tool and the full editor. I did most my work by running the editor. You can test your scripts by saving your file and pressing F5 in the Full Editor to launch your script. If errors happen, you'll see a message in the bottom window of the editor. If I make changes to a script, I find I need to save and close and reload the changed script in the full editor to run a script again. Also, when you have your script working as desired, you can press F7 and the editor will launch the Autoit Compiler which will make an EXE file of your script, that you can link into XBMC as a Stand Alone Launcher
http://www.gwenael.org/forum/viewtopic.php?id=3
Here's my autoit script that handles the semi-automated process of reconnecting my 4 wii motes.
You will need to change several entries in the script that reflect my wii mote names and also the file paths that I have set up on my XBMC pc. You will need to make my script match how your system and files are configured.
OK - my post got too long with my code included. I will post my script in a post that should follow quickly after this one.
Once you have changed my script to fit your configuration, file paths etc and have successfully run your script by pressing F5 in the Autoit full editor, create an exe version by pressing F7 and place the exe file in a folder that will not be changed. Follow the Advanced Launcher steps to create a Standalone launcher for your compiled exe file and put that advanced launcher in your favorites and then, perhaps, add the stand alone launcher to a submenu or main menu for easy access.
You should be good to go!
Toshiba bluetooth and Wiimotes - reconnection script for use with Advanced Launcher in XBMC. (part 2)
Here's my Auto-IT script that is mentioned in my post earlier. It is non-optimized. Someone with better understanding of variables and looping could have done this much more efficiently.
Run("C:\Program Files (x86)\Toshiba\Bluetooth Toshiba Stack\ECCenter1.exe", "", @SW_MAXIMIZE)
WinWaitActive("Bluetooth Settings")
; Prompt the user to run the script - use a Yes/No/Cancel prompt (3 - see help file)
$answer = MsgBox(3, "Does remote 6A need to be reconnected?", "Press Yes to reconnect, No to skip, Cancel to exit.")
; Check the user's answer to the prompt (see the help file for MsgBox return values)
; If "Cancel" was clicked (2) then exit the script
If $answer = 2 Then
SplashTextOn("Reconnect", "OK Bye.", -1, 50, -1, -1, 4, '')
Sleep(3000)
SplashOff()
Send("!{F4}") ;close bluetooth app
Exit
EndIf
; Check the user's answer to the prompt (see the help file for MsgBox return values)
; If "Yes" was clicked (6) then reconnect
If $answer = 6 Then
Send("{F10}") ;click on menu bar
Send("{RIGHT}") ;move to view
Send("{DOWN 3}") ; move to list
Send("{ENTER}") ; click list to change the view
Sleep(1000) ;1 second for the view to update
Send("{6}") ;click to move to your 6A-remote ; may want to enhance later to be a variable and loop thru unconnected
Send("+{F10}") ;right click to open menu
Send("{DOWN}") ; to move to Connect option on right click menu
Send("{ENTER}") ;to activate the Connect dialog
SplashTextOn("Press the buttons", "Press the 1 and 2 buttons on the 6A remote", -1, 50, -1, -1, 4, '')
Sleep(3000)
SplashOff()
Send("{ENTER}") ;to get Toshiba to look for selected remote.
Sleep(6000)
EndIf
; Prompt the user to run the script - use a Yes/No/Cancel prompt (3 - see help file)
$answer = MsgBox(3, "Does remote 32 need to be reconnected?", "Press Yes to reconnect, No to skip, Cancel to exit.")
If $answer = 2 Then
Run("E:\Dolphin3.0-835\Dolphin.exe", "", @SW_MAXIMIZE) ;run dolphin for my current version - need to make path generic for the future
WinWaitActive("Dolphin 3.0-845-dirty") ;wiat for 1st window to appear
; note: need to change the dolphin hotkey for pause from F10 to something else. in Dolphin - Options, Hotkey Settings, click on pause F10 Cell, then hit spacebar, then have 3 seconds to kepress the replacement you want. I chose control-p.
Send("{F10}") ;click on menu bar
Send("{RIGHT 2}") ;move to options
Send("{DOWN 5}") ; move to wiimote settings
Send("{ENTER}") ; click to open wiimote settings
Sleep(1000)
Send("{ENTER}") ; click to click OK and close wiimote settings
Send("!{F4}") ;close Dolphin app
SplashTextOn("Reconnect", "OK Bye.", -1, 50, -1, -1, 4, '')
Sleep(3000)
SplashOff()
Send("!{F4}") ;close bluetooth app
Exit
EndIf
If $answer = 6 Then
Send("{F10}") ;click on menu bar
Send("{RIGHT}") ;move to view
Send("{DOWN 3}") ; move to list
Send("{ENTER}") ; click list to change the view
Sleep(1000) ;1 second for the view to update
Send("{3}") ;click to move to your 32-remote ; may want to enhance later to be a variable and loop thru unconnected
Send("+{F10}") ;right click to open menu
Send("{DOWN}") ; to move to Connect option on right click menu
Send("{ENTER}") ;to activate the Connect dialog
SplashTextOn("Press the buttons", "Press the 1 and 2 buttons on the 32 remote", -1, 50, -1, -1, 4, '')
Sleep(3000)
SplashOff()
Send("{ENTER}") ;to get Toshiba to look for selected remote.
Sleep(6000)
EndIf
$answer = MsgBox(3, "Does remote 89 need to be reconnected?", "Press Yes to reconnect, No to skip, Cancel to exit.")
If $answer = 2 Then
Run("E:\Dolphin3.0-835\Dolphin.exe", "", @SW_MAXIMIZE) ;run dolphin for my current version - need to make path generic for the future
WinWaitActive("Dolphin 3.0-845-dirty") ;wiat for 1st window to appear
; note: need to change the dolphin hotkey for pause from F10 to something else. in Dolphin - Options, Hotkey Settings, click on pause F10 Cell, then hit spacebar, then have 3 seconds to kepress the replacement you want. I chose control-p.
Send("{F10}") ;click on menu bar
Send("{RIGHT 2}") ;move to options
Send("{DOWN 5}") ; move to wiimote settings
Send("{ENTER}") ; click to open wiimote settings
Sleep(1000)
Send("{ENTER}") ; click to click OK and close wiimote settings
Send("!{F4}") ;close Dolphin app
SplashTextOn("Reconnect", "OK Bye.", -1, 50, -1, -1, 4, '')
Sleep(3000)
SplashOff()
Send("!{F4}") ;close bluetooth app
Exit
EndIf
If $answer = 6 Then
Send("{F10}") ;click on menu bar
Send("{RIGHT}") ;move to view
Send("{DOWN 3}") ; move to list
Send("{ENTER}") ; click list to change the view
Sleep(1000) ;1 second for the view to update
Send("{8}") ;click to move to your 89-remote ; may want to enhance later to be a variable and loop thru unconnected
Send("+{F10}") ;right click to open menu
Send("{DOWN}") ; to move to Connect option on right click menu
Send("{ENTER}") ;to activate the Connect dialog
SplashTextOn("Press the buttons", "Press the 1 and 2 buttons on the 89 remote", -1, 50, -1, -1, 4, '')
Sleep(3000)
SplashOff()
Send("{ENTER}") ;to get Toshiba to look for selected remote.
Sleep(6000)
EndIf
$answer = MsgBox(3, "Does remote 96 need to be reconnected?", "Press Yes to reconnect, No to skip, Cancel to exit.")
If $answer = 2 Then
Run("E:\Dolphin3.0-835\Dolphin.exe", "", @SW_MAXIMIZE) ;run dolphin for my current version - need to make path generic for the future
WinWaitActive("Dolphin 3.0-845-dirty") ;wiat for 1st window to appear
; note: need to change the dolphin hotkey for pause from F10 to something else. in Dolphin - Options, Hotkey Settings, click on pause F10 Cell, then hit spacebar, then have 3 seconds to kepress the replacement you want. I chose control-p.
Send("{F10}") ;click on menu bar
Send("{RIGHT 2}") ;move to options
Send("{DOWN 5}") ; move to wiimote settings
Send("{ENTER}") ; click to open wiimote settings
Sleep(1000)
Send("{ENTER}") ; click to click OK and close wiimote settings
Send("!{F4}") ;close Dolphin app
SplashTextOn("Reconnect", "OK Bye.", -1, 50, -1, -1, 4, '')
Sleep(3000)
SplashOff()
Send("!{F4}") ;close bluetooth app
Exit
EndIf
If $answer = 6 Then
Send("{F10}") ;click on menu bar
Send("{RIGHT}") ;move to view
Send("{DOWN 3}") ; move to list
Send("{ENTER}") ; click list to change the view
Sleep(1000) ;1 second for the view to update
Send("{9}") ;click to move to your 6A-remote ; may want to enhance later to be a variable and loop thru unconnected
Send("+{F10}") ;right click to open menu
Send("{DOWN}") ; to move to Connect option on right click menu
Send("{ENTER}") ;to activate the Connect dialog
SplashTextOn("Press the buttons", "Press the 1 and 2 buttons on the 96 remote", -1, 50, -1, -1, 4, '')
Sleep(3000)
SplashOff()
Send("{ENTER}") ;to get Toshiba to look for selected remote.
Sleep(6000)
EndIf
Send("!{F4}") ;close Toshiba bluetooth app
Run("E:\Dolphin3.0-835\Dolphin.exe", "", @SW_MAXIMIZE) ;run dolphin for my current version - need to make path generic for the future
WinWaitActive("Dolphin 3.0-845-dirty") ;wiat for 1st window to appear
; note: need to change the dolphin hotkey for pause from F10 to something else. in Dolphin - Options, Hotkey Settings, click on pause F10 Cell,
; then hit spacebar, then have 3 seconds to keypress the replacement you want. I chose control-p.
Send("{F10}") ;click on menu bar
Send("{RIGHT 2}") ;move to options
Send("{DOWN 5}") ; move to wiimote settings
Send("{ENTER}") ; click to open wiimote settings
Sleep(1000)
Send("{ENTER}") ; click to click OK and close wiimote settings
Send("!{F4}") ;close Dolphin app
Exit ; to exit the script