Originally Posted by
Juggalo20 ShortcutMe macros do take a little getting used to. Anyways I wrote out something that will do what you want. It will go through options to turn Location Services on (I think that's what you meant by gps?). Then it will check if Bluetooth is on, if not it will prompt you (this is a BB OS API issue, checking if bluetooth is on, while it's off results in an unavoidable prompt) however the way I wrote this it will turn on bluetooth no matter which option you choose in the prompt. It requres two macros though. One to toggle bluetooth which can be imported into any other macro and then this one you want. Goes a lil something like this
Macro to toggle bluetooth, this macro can be imported into any other one.
Shortcut Name: Toggling Bluetooth
Shortcut Keys: BTT
App Name: Macro
Macros:
Launch Manage Connections;
While0 !IsAppForeground Manage Connections;
Do0;
Delay1;
EndWhile0;
NavMoveDown2;
NavClick;
EscKey;
Now here's the one you wanted, it will go through options, turn on Location Services. Then check if Bluetooth is on, if it isn't you will get a prompt. No matter what you choose bluetooth will still be turned on.
Shortcut Name: GPS And Bluetooth On
App Name: Macro
Macros:
Launch Options;
While0 !IsAppForeground Options;
Do0;
Delay1;
EndWhile0;
MenuItemFromTop5;
NavClick;
Delay50;
MenuItemFromTop6;
NavClick;
Delay50;
MenuItemFromTop2;
NavClick;
MenuItemFromTop1;
NavClick;
EscKey;
*Keys;
EscKey;
If0 IsAppForeground Options;
Then0;
EscKey;
Else0;
Delay1;
EndIf0;
If1 IsBtOn;
Then1;
Delay1;
Else1;
ImportMacroBTT;
EndIf1;
This was done pretty quick on my end, so there's no safegaurd in place for if Options was already opened. Please make sure Options isn't open already or this could have some adverse effects. If this is indeed what you wanted I'll expand it and put some safe guards in. This was written using ShortcutMe_Touch. 5.9.1.3_OS7_T on 9900/7.0.0.440
Posted from my CrackBerry at wapforums.crackberry.com