Notices

Windows Mobile 5 No more Magneto!

Reply
 
LinkBack Thread Tools
Old 07-30-07, 07:27 PM   #1 (permalink)
Aximsite Major League
 
Join Date: Feb 2005
Posts: 376
Thanked 0 Times in 0 Posts
Mortscript Help: Launch BT DUN script

Does anyone who uses Mortscript have a script to launch Internet connection via bluetooth DUN with their cellphone or can you help with a script that starts/launches the process below?

My PDA: Axim x51v, WM5, VGA, Widcomm Stack, Paired w/LG, Verizon Wireless

My current process to start the connection is this:
1. Start Bluetooth Manager (BTConnManagerCE.exe)
2. In Bluetooth Shortcuts screen: Tap & Hold on VX8500DUN (paired name, only icon in BT Manager), then select Connect
3. Next screen: Bluetooth: Dial-Up connection
--select a connection to use:
4. Click on connection name "vzw"
5. Click OK upper right corner.
Done.
mphayvanh is offline   Reply With Quote
Sponsor Ads
Old 07-31-07, 04:03 PM   #2 (permalink)
Aximsite Major League
 
Join Date: Feb 2005
Posts: 376
Thanked 0 Times in 0 Posts
Nevermind, I DID IT!!!

Provided that BT is already OFF. Script looks like this:

Run ("Windows\BTConnManagerCE.exe")
WaitForActive( "Bluetooth Manager", 20)
MouseDblClick( "Bluetooth Manager", 70, 150) ***Note***VGA icon position
WaitForActive( "Bluetooth: Dial-Up connection", 20)
Sleep(1000)
SendOK (Bluetooth: Dial-Up connection")
WaitForActive( "Connection Manager", 20)
Minimize ( "Connection Manager")
KillScript (Name of your script)

Last edited by mphayvanh; 07-31-07 at 04:14 PM.
mphayvanh is offline   Reply With Quote
Old 07-31-07, 10:12 PM   #3 (permalink)
Aximsite Minor League
 
Join Date: Jun 2006
Posts: 107
Thanked 0 Times in 0 Posts
Hey,

Looks good, but thought i'd share my 2 cents.

For a bunch of programs, if you simply go to :

Start>>Settings>>Connections>>Connections then click on the "advanced" tab, then select networks........if you select both to "bluetooth work settings" it will actually on SOME programs, do it for you automatically. Only thing is, if there are no open connections wifi, or BT is off, it will tell you it cant connect (no biggie)

EDIT: for those few programs, it will NOT close the connection upon closing out the window. If you use the script it WILL close the connection upon closing the window.

My script was a bit less complicated than yours, perhaps yours in theory works better, but i just did the following:

If ( NOT Connected() )
Connect( "The Internet" )
EndIf

RunWait ( "\Program Files\NetFront LocationFree Player\NLFPlayer.exe" )



obviously this is only for NFL Player, but you can substitute whatever *.exe you want in there. Upon closing the window, it disconnects as well.

I think your script actually goes through all the steps. I had to do that for active sync, but for any other program, this script is much neater, no windows opening to double click, etc...... IMHO
__________________
----------------------------------------------------------------
Things my PDA Does:

1.) TomTom Nav 6 :approve:
2.) Control my home theater with Novii :approve:
3.) LocationFree TV via EVDO V3c :approve: :approve:
4.) Remote computer access via EVDO and XP pro Vaio :approve:

Last edited by VtJay22; 07-31-07 at 10:34 PM.
VtJay22 is offline   Reply With Quote
Old 07-31-07, 10:25 PM   #4 (permalink)
Aximsite Minor League
 
Join Date: Jun 2006
Posts: 107
Thanked 0 Times in 0 Posts
After re-evaluating my above post, i figured I'd share that you MUST default "the internet" to the BT connection through the start>>settings>>......otherwise you'd have to go through all the steps as you mentioned.

The other thing to note is that with programs such as "flexmail", I actually just press flexmail (mapped to mail button), it connects, checks mail, and ends connection as to not waste precious minutes while i type an e-mail. Then i click send, and it opens connection, sends, then ends connection again. Pretty cool....
__________________
----------------------------------------------------------------
Things my PDA Does:

1.) TomTom Nav 6 :approve:
2.) Control my home theater with Novii :approve:
3.) LocationFree TV via EVDO V3c :approve: :approve:
4.) Remote computer access via EVDO and XP pro Vaio :approve:
VtJay22 is offline   Reply With Quote
Old 08-01-07, 03:12 AM   #5 (permalink)
Aximsite Major League
 
Join Date: Feb 2005
Posts: 376
Thanked 0 Times in 0 Posts
Wow. Your script works better. Obviously I have a lot to learn about writing scripts.

I also learned a quick script to close the connection once I'm done and turn off bluetooth.

Script:
Disconnect( "The Internet")
RunWait ("Windows\BTOFF.exe")
KillScript (CloseDUN)

(BTOFF.exe is a mini program to toggle BT ON/OFF I found that works with my Widcomm Stack BT)

I also use Flexmail 2006. Can you share your script that connects, check mail and ends the connection? Thanks!

Last edited by mphayvanh; 08-01-07 at 11:45 AM.
mphayvanh is offline   Reply With Quote
Old 08-01-07, 12:46 PM   #6 (permalink)
Aximsite Minor League
 
Join Date: Jun 2006
Posts: 107
Thanked 0 Times in 0 Posts
MPH,

I just looked and it appears there is no script at all that i'm using. I guess since i defaulted "The Internet" to the work BT connection, Flexmail does this on its own. Of course, it does not turn on the BT nor does it turn OFF the BT but it opens the connection and shuts it after checking/sending

Let me know if yours does the same, if not, i'll dig through my settings further looking for the answer!
__________________
----------------------------------------------------------------
Things my PDA Does:

1.) TomTom Nav 6 :approve:
2.) Control my home theater with Novii :approve:
3.) LocationFree TV via EVDO V3c :approve: :approve:
4.) Remote computer access via EVDO and XP pro Vaio :approve:
VtJay22 is offline   Reply With Quote
Reply

Tags
dun, launch, mortscript, script

Sponsor Ads

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 04:29 AM.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Copyright © 2003-09 LeckMedia, LLC