|
||||
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. |
|
||||
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) Last edited by Darkness231; 09-13-2007 at 07:37 PM. |
|
Thread Tools | |
Display Modes | |
|
|