[JAM, MDA Compact, S100 General] GuestX01070:
MortScript Method

Here is a MortScript method. Obviously this is an old post and a WM 6.5 and 7 version would be nice. I don't have phones running those however. I hope I added enough documentation to this script that anyone can figure it out and post and update.

# BlueSync 1.0 by Xamfap, Free under the GNU General Public License.
#
# BlueSync makes two assumputions:
#
# A) You keep BlueTooth enabled on your Windows Mobile phone. With BlueTooth enabled
# and your device disconnected and set to undiscoverable you will not use extra
# battery power.
#
# B) You have already established a BlueTooth sync relationship with a PC.
#
#
# To use BlueSync:
#
# 1) Install MortScript to use this file.
#
# 2) Install This code in a text file on your WM 6.1 Device named
# \Windows\Start Menu\BlueSync.mscr
#
# 3) In the start menu you can now choose BlueSync to connect and
# disconnect your bluetooth device.

ErrorLevel( "Warn" )

my_program = "\Windows\Start Menu\Programs\ActiveSync.lnk"

# Verify the program or link exists.
#
If( NOT FileExists( my_program ) )
Message( "Could not find ActiveSync. Edit the my_program variable." )
Message( "Written for WM 6.1. Verify the Macro section is correct for you also." )
Exit
EndIf

# Launch ActiveSync if it is not already Running.
#
If( NOT WndExists( "ActiveSync" ) )
Run( my_program )
WaitFor( "ActiveSync", 5 )

If( NOT WndExists( "ActiveSync" ) )
Message( "ActiveSync did not launch after 5 Seconds. Giving up." )
Exit
EndIf

Minimize( "ActiveSync" )
EndIf

### MACRO SECTION ###
#
# It is likely that the use of Macros is not very portable and also not going to
# work at all in any future version of Windows Mobile when the menus are changed.
# For that reason I have included the docs on all Macros here so anyone can easily
# pick this up and modify it as needed:
#
# SendSpecial [ ( window title [ , Ctrl?, Shift? [, Alt? ] ] ) ]
# Activates the given window and sends the given
# special character. If no window title is given,
# the currently active window is used. Ctrl?,
# Shift?, and Alt? are switches for the
# corresponding keys. If the parameter is TRUE,
# the key is pressed with the special character.
# There are there special characters:
#
# CR.............................Carriage return
# Tab............................Tabulator
# Esc............................Escape
# Space..........................Space
# Backspace......................Remove character left to the
# cursor (”?”)
# Delete.........................Remove the character right to
# the cursor („Del“)
# Insert........................ "Ins.” (usually toggles between
# overwrite and insert mode)
# Up/Down/Left/Right.............Direction pad to the corresponding
# direction
# Home.......................... "Home“, to the beginning of the
# line or document
# End........................... "Ende, the the end of the line or
# document
# PageUp/PageDown................Page up / down
# LeftSoft/RightSoft.............Display buttons“ on Smartphones
# and PPCs since WM5
# Win............................"Windows“ key on Smartphones and
# PPCs since WM5 (Start menu)
# Context........................"Context menu“ on PCs and Smartphones
# /PPCs since WM5
#
# Examples:
#
# SendCR( "ERROR" )
# SendDown
# SendHome( "",0,1 ) (highlight to beginning of line)
#
#
#
# These are the Macros that trigger a bluetooth connect or disconnect
# on a phone with an existing BlueTooth Enabled Radio on WM 6.1
#
#
SendRightSoft( "ActiveSync" )
SendUp( "ActiveSync" )
SendCR( "ActiveSync" )

# Minimize ActiveSync as we've done our magic and want the Today Screen.
#
Minimize( "ActiveSync" )