-
- I just gave a poor explanation. The fix that you are already working on is what I'm looking for.
Last edited by ONE618; 10-08-11 at 12:54 PM.
10-08-11 12:50 PMLike 0 - ShortcutMe 5.9.0.2 is on the beta page (the link on the bottom of the beta page)
New in 5.9.0.2 (for 9900/9930, 9810, 9850/9860):
* Fixed the bug in 'Set' macro
'Set $Var0=2; Set $Var1=$Var0' will now set $Var1 to 2
* 'KeypadLockKey' macro is working now
* StopMacro from other apps can now also stop suspended macros in ShortcutMe.
(You don't get the message informing you that a remote app stopped ShortcutMe macros)
* Added 'Show' macro
'Show' is similar to 'Prompt', but it is more suited for showing things than 'Prompt' macro.
I will later on make 'Show' more suited for formatted text output.TomCanuck and anon(4113192) like this.10-08-11 02:38 PMLike 2 -
-
- Green is an instruction and should not be included in the macro
- Orange is text that should be replaced with your desired info
- I wrote this quick and dirty. I'll upload a cleaner optimized version later on
- The max cities is set to 3, for now, because of macro character limits
- This requires the latest ShortcutMe beta release v5.9.0.2
World Clock
Set $lc=Local City;
Set $1n=City1 Name;
Set $2n=City2 Name;
Set $3n=City3 Name;
Set $1d=City1 Time Difference in hours;
Set $2d=City2 Time Difference in hours;
Set $3d=City3 Time Difference in hours;
the time difference should be compared to your local time
for example...
if your local time is 11:00PM and the city you're comparing it to is 1:00AM then $1d=2
if your local time is 11:00PM and the city you're comparing it to is 9:00PM then $1d=-2
Set $lt=GetTime;
Div $lt,100;
If0 $lt>1159;
Then0; Set $ap=PM;Set $am=0;Sub $$Result,12;
Else0;Set $ap=AM;Set $am=1;EndIf0;
If1 $$Rest<10;
Then1;Set $$Rest=0$$Rest;
EndIf1;
Set $lt=$$Result:$$Rest $ap;
Set $hr=$$Result;
Sum $hr,$1d;
If4 $$Result>12;
Then4;Sum $$Result,-12;
If5 $am==1;
Then5;Set $1t=$$Result:$$Rest PM;
Else5;Set $1t=$$Result:$$Rest AM *tomorrow;EndIf5;
Else4;Set $1t=$$Result:$$Rest $ap;EndIf4;
Sum $hr,$2d;
If4 $$Result>12;
Then4;Sum $$Result,-12;
If5 $am==1;
Then5;Set $2t=$$Result:$$Rest PM;
Else5;Set $2t=$$Result:$$Rest AM *tomorrow;EndIf5;
Else4;Set $2t=$$Result:$$Rest $ap;EndIf4;
Sum $hr,$3d;
If6 $$Result>12;
Then6;Sum $$Result,-12;
If7 $am==1;
Then7;Set $3t=$$Result:$$Rest PM;
Else7;Set $3t=$$Result:$$Rest AM *tomorrow;EndIf7;
Else6;Set $3t=$$Result:$$Rest $ap;EndIf6;
Show$lc $lt
$1n $1t
$2n $2t
$3n $3t;
do not use this macro, it is incomplete
Set $lc=Local City;
Set $1n=City1 Name;
Set $2n=City2 Name;
Set $3n=City3 Name;
Set $1d=City1 Time Difference in hours;
Set $2d=City2 Time Difference in hours;
Set $3d=City3 Time Difference in hours;
Set $lt=GetTime;
Div $lt,100;
If0 $lt>1159;
Then0; Set $ap=PM;Set $am=0;Sub $$Result,12;
Else0;Set $ap=AM;Set $am=1;EndIf0;
If1 $$Rest<10;
Then1;Set $$Rest=0$$Rest;
EndIf1;
Set $lt=$$Result:$$Rest $ap;
Set $hr=$$Result;
Sum $hr,$1d;
If4 $$Result>12;
Then4;Sum $$Result,-12;
If5 $am==1;
Then5;Set $1t=$$Result:$$Rest PM;
Else5;Set $1t=$$Result:$$Rest AM *tomorrow;EndIf5;
Else4;Set $1t=$$Result:$$Rest $ap;EndIf4;
Sum $hr,$2d;
If4 $$Result>12;
Then4;Sum $$Result,-12;
If5 $am==1;
Then5;Set $2t=$$Result:$$Rest PM;
Else5;Set $2t=$$Result:$$Rest AM *tomorrow;EndIf5;
Else4;Set $2t=$$Result:$$Rest $ap;EndIf4;
Sum $hr,$3d;
If6 $$Result>12;
Then6;Sum $$Result,-12;
If7 $am==1;
Then7;Set $3t=$$Result:$$Rest PM;
Else7;Set $3t=$$Result:$$Rest AM *tomorrow;EndIf7;
Else6;Set $3t=$$Result:$$Rest $ap;EndIf6;
S
Posted from my CrackBerry at wapforums.crackberry.com10-08-11 10:13 PMLike 0 - very nice ;o what phone/os are you using though? I can't use this, I get "Field Full" error (on 9900/7.0.0.440). Here's as much as I can enter
Set $lc=Local City;
Set $1n=City1 Name;
Set $2n=City2 Name;
Set $3n=City3 Name;
Set $1d=City1 Time Difference in hours;
Set $2d=City2 Time Difference in hours;
Set $3d=City3 Time Difference in hours;Last edited by ONE618; 10-08-11 at 10:34 PM.
10-08-11 10:30 PMLike 0 -
Posted from my CrackBerry at wapforums.crackberry.com10-08-11 10:38 PMLike 0 - Thanks for bringing it up. I forgot to include that as a note when I posted. Note added now. Cheers.10-08-11 10:47 PMLike 0
-
Srsly man, this an impressive macro. Loving it
Posted from my CrackBerry at wapforums.crackberry.com10-08-11 10:59 PMLike 0 -
- another note you may wish to add is how it displays -difference. If I set the difference so that it rolls backwards from PM to AM (-12 for example) it displays "-x:xx" which works out to "12:00PM - hours:minutes". perfectly acceptable, but did take me a few tests to pick up on (again, I'm still on my first cup of coffee) lol
Srsly man, this an impressive macro. Loving it
Posted from my CrackBerry at wapforums.crackberry.com10-08-11 11:34 PMLike 0 - A little something I whipped up to check if WiFi is on and connected, otherwise turn it off. Wrote it to be used with repeating auto launch. Like, ever 60 mins or whatever you want. This was written on 9900/7.0.0.353 with ShortcutMe_Touch 5.8.3.1. I can't imagine any possible bad things that could happen, but as usual everything I post is USE AT YOUR OWN RISK. Just wrote this tonight (after the whistles while playing NHL '12 hah), and tested using 30 minutes between launches (used a ding so I knew when to look lol). Seems to work just fine.
If0 IsWiFiOn;
Then0;
If1 HasWifiConnection;
Then1;
Stop;
Else1;
Launch WiFi_Off;
EndIf1;
Else0;
Launch WiFi_On;
Delay60000;
If2 HasWifiConnection;
Then2;
Stop;
Else2;
Launch WiFi_Off;
EndIf2;
EndIf0;
Checks if WiFi is on, if it is checks if Wifi is connected, if it is, stop.
If wifi is on but not connected, turns wifi off,
If wifi is off, turns it on, waits 1 minute, if wifi is still not connected then turn it off, if wifi established a connection, leave wifi on.
Posted from my CrackBerry at wapforums.crackberry.com
As with every macro I post, use of this is AT YOUR OWN RISK
Edit #1 quick reminder to use 24 hour time format when entering the times...
set $ct=gettime;
If0 $ct > Time1 && $ct < Time2;
Then0;
If1 IsWiFiOn;
Then0;
If2 HasWifiConnection;
Then2;
Stop;
Else2;
Launch WiFi_Off;
EndIf2;
Else1;
Launch WiFi_On;
Delay60000;
If3 HasWifiConnection;
Then3;
Stop;
Else3;
Launch WiFi_Off;
EndIf3;
EndIf1;
Else0;
Stop;
EndIf0;
Posted from my CrackBerry at wapforums.crackberry.comLast edited by Juggalo20; 10-10-11 at 03:56 AM.
Vijik likes this.10-09-11 11:03 PMLike 1 - xACiD: here might be a better spot for reqs/questions. http://forums.crackberry.com/blackbe...07/index9.html and unofficially "no" ShortcutMe doesn't deal in GPS at the moment
Posted from my CrackBerry at wapforums.crackberry.com10-10-11 10:25 AMLike 0 - 10-12-11 08:03 PMLike 0
- World Clock v2
Updates
- you can add more than three cities
- fixed -hr bug
- Green is an instruction and should not be included in the macro
- Orange is text that should be replaced with your desired info
- Requires ShortcutMe v5.9.1.1+
Macro
Set $t=GetTime;
Div $t,100;
Set $hr=$$Result;
If0 $$Rest<10;
Then0;
Set $$Rest=0$$Rest;
EndIf0;
Set $c=0;
While0 $c<4;Do0;
If3 $c==1;
Then3;
Sum $hr,City 1 diff;
Set $lt=$t;
ElseIf3 $c==2;
Sum $hr,City 2 diff;
Set $1t=$t;
ElseIf3 $c==3;
Sum $hr,City 3 diff;
Set $2t=$t;
EndIf3;
the time difference should be compared to your local time for example...
if your local time is 11:00PM and the city you're comparing it to is 1:00AM then City 1 diff=2
if your local time is 11:00PM and the city you're comparing it to is 9:00PM then City 1 diff=-2
If1 $$Result>-1 && $$Result<12;
Then1;
Set $i=AM;
ElseIf1 $$Result>11 && $$Result<24;
Sum $$Result,-12;
Set $i=PM;
ElseIf1 $$Result>23;
Sum $$Result,-24;
Set $i=AM Tomorrow;
Else1;
Mult $$Result,-1;
Set $i=PM Yesterday;
EndIf1;
If2 $$Result==0;
Then2;
Set $$Result=12;
EndIf2;
Set $t=$$Result:$$Rest $i;
Inc$c;
EndWhile0;
ShowLocal City Name $lt
City 1 Name $1t
City 2 Name $2t
City 3 Name $t;10-12-11 10:43 PMLike 0 - is there somwhere i can find a list of application names?
ie Wifi_on, Wifi_off; is for wifi..
but am i trying to also figure out how to change profiles with macros.. i couldn't find anything
EDIT: found profiles.. it's an application name as well...
so if someone could point me where to find all the application names that would be GREAT : >
EDIT2: stupid... i JUST realized the application list on the main config page has a list of app names!! duhhLast edited by knowledge_6; 10-13-11 at 02:08 PM.
10-13-11 01:49 PMLike 0 -
is there somwhere i can find a list of application names?
ie Wifi_on, Wifi_off; is for wifi..
but am i trying to also figure out how to change profiles with macros.. i couldn't find anything
EDIT: found profiles.. it's an application name as well...
so if someone could point me where to find all the application names that would be GREAT : >
EDIT2: stupid... i JUST realized the application list on the main config page has a list of app names!! duhh10-13-11 04:39 PMLike 0 -
For those who may be looking for what I was looking for, this is what I did...
App Name: Google Sync*
Macros: MENUKey;ENTERKey;ENTERKey;ESCKey
It was that simple! What I really like is how I can have SCM schedule this macro? to run once a day, which is something I've always yearned for!10-13-11 04:51 PMLike 0 - Thanks for the quick response! Being new to SCM I was a bit overwhelmed with all the options, but taking it slow and digesting it I finally found what I was looking for!
For those who may be looking for what I was looking for, this is what I did...
App Name: Google Sync*
Macros: MENUKey;ENTERKey;ENTERKey;ESCKey
It was that simple! What I really like is how I can have SCM schedule this macro? to run once a day, which is something I've always yearned for!10-13-11 04:57 PMLike 0 - So what's the status of bluetooth? How'd they do it in the NFC launcher video? that macro is like exactly what i'd like10-13-11 05:52 PMLike 0
- Forum
- BlackBerry OS Phone Forums
- BlackBerry OS Apps
Handy ShortcutMe 5.0 Macro Shortcuts
« What's Wrong With Intouch App? How Can I get it to Work Better?
|
Importing courses from a kml google maps file: is it possible? »
LINK TO POST COPIED TO CLIPBOARD