PPCGeeks Forums HTC Arrive HTC HD2 HTC Thunderbolt HTC Touch Pro 2 HTC Evo 4G HTC Evo 3D Samsung Galaxy S II Motorola Droid X Apple iPhone Blackberry
Go Back   PPCGeeks > Windows Mobile > WM HTC Devices > HTC Titan

Notices



Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-13-2007, 01:00 PM
Darkness231's Avatar
mmmm Freebirds
Offline
Pocket PC: HTC EVO (X2)
Carrier: Sprint
Location: Cedar Park, TX
 
Join Date: Mar 2007
Posts: 1,218
Reputation: 2543
Darkness231 is a VIPDarkness231 is a VIPDarkness231 is a VIPDarkness231 is a VIPDarkness231 is a VIPDarkness231 is a VIPDarkness231 is a VIPDarkness231 is a VIPDarkness231 is a VIPDarkness231 is a VIPDarkness231 is a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Turning BT off/on w/ mortscript

I am trying to create a script that checks the BT state and then turn on/keeps on the BT then start a program (landscaper-->google maps) and then when the program terminates it returns the BT state that it was before starting the script...

the programs are
Program Files\BlindLemon\BTToggle.exe
Program Files\Landscaper.exe or \Windows\Start Menu\Programs\Landscaper.exe
Program Files\Googlemaps\googlemaps.exe

I have part of the script but I need the BT part. Here is what I have


Rotate(90)
Run( "\Window\Start Menu\Programs\Landscaper.exe" )
WaitForActive( "Landscaper", 05 )
SendDown ( "Landscaper" )
Runwait( "\Program Files\GoogleMaps\GoogleMaps.exe" )
Close( "Landscaper" )
Rotate(0)

And This portion Works fine.. just looking for the BT component


If anyone has experience with this or has a similar script let me know
Thanks..
__________________

Good things don't end in 'eum,' they end in 'mania'...or 'teria'
Easily switch between TouchFlo and Mobile Shell
If you like my work feel free to

Last edited by Darkness231; 09-13-2007 at 04:32 PM.
Reply With Quote
  #2 (permalink)  
Old 09-13-2007, 07:30 PM
Darkness231's Avatar
mmmm Freebirds
Offline
Pocket PC: HTC EVO (X2)
Carrier: Sprint
Threadstarter
Location: Cedar Park, TX
 
Join Date: Mar 2007
Posts: 1,218
Reputation: 2543
Darkness231 is a VIPDarkness231 is a VIPDarkness231 is a VIPDarkness231 is a VIPDarkness231 is a VIPDarkness231 is a VIPDarkness231 is a VIPDarkness231 is a VIPDarkness231 is a VIPDarkness231 is a VIPDarkness231 is a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Talking

Figured It out...
This script is for
1. Check the BT state and turn on if off (using a simple BT toggler program located HERE....and turn off when program is exited
2. Rotating the screen to 90º (So Keyboard will be Functional)
3. Keeping the screen rotated at 90º even if switched to portrait (this is achived with the program called Landscaper)
4. Running Google Maps
5. Returning everything (BT Status/Rotation) to state prior to executing the script

Of course you can change any of the programs to suite your needs..

Here is the Script I used



B = RegRead ("HKLM", "Software\oem\bluetooth\" , "BTcomstatus" )
If ( B = 0 )
Run( "\Program Files\BlindLemon\BTToggle.exe" )
Rotate(90)
Run( "\windows\Start Menu\programs\Landscaper.exe" )
WaitForActive( "Landscaper", 05 )
SendDown ( "Landscaper" )
Runwait( "\Program Files\GoogleMaps\GoogleMaps.exe" )
Close( "Landscaper" )
Run( "\Program Files\BlindLemon\BTToggle.exe" )
Rotate(0)

Else
If ( B = 1 )
Rotate(90)
Run( "\windows\Start Menu\programs\Landscaper.exe" )
WaitForActive( "Landscaper", 05 )
SendDown ( "Landscaper" )
Runwait( "\Program Files\GoogleMaps\GoogleMaps.exe" )
Close( "Landscaper" )
Rotate(0)
Attached Files
File Type: zip Google Maps 90 With BTToggle.zip (398 Bytes, 5 views) Click for barcode!

Last edited by Darkness231; 09-13-2007 at 07:37 PM.
Reply With Quote
  #3 (permalink)  
Old 09-13-2007, 08:16 PM
Darkness231's Avatar
mmmm Freebirds
Offline
Pocket PC: HTC EVO (X2)
Carrier: Sprint
Threadstarter
Location: Cedar Park, TX
 
Join Date: Mar 2007
Posts: 1,218
Reputation: 2543
Darkness231 is a VIPDarkness231 is a VIPDarkness231 is a VIPDarkness231 is a VIPDarkness231 is a VIPDarkness231 is a VIPDarkness231 is a VIPDarkness231 is a VIPDarkness231 is a VIPDarkness231 is a VIPDarkness231 is a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Here is the BT monitoring part
0 is BT off
1 is BT on






B = RegRead ("HKLM", "Software\oem\bluetooth\" , "BTcomstatus" )
If ( B = 0 )
run( "Prorgam path for BT toggler such as BlindLemon's BTTolgger" )
runwait( "Insert your program path here" )
run( "Prorgam path for BT toggler such as BlindLemon's BTTolgger" )

Else
If ( B = 1 )
run( "Insert your program path here" )
Attached Files
File Type: zip BT portion.zip (313 Bytes, 4 views) Click for barcode!

Last edited by Darkness231; 09-13-2007 at 08:21 PM.
Reply With Quote
Reply

  PPCGeeks > Windows Mobile > WM HTC Devices > HTC Titan

Thread Tools
Display Modes

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 -4. The time now is 07:48 PM.


Powered by vBulletin® ©2000 - 2019, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0
©2012 - PPCGeeks.com