I plan to make those operators (>,<,!=,==) available for both "While" and "If" macros.
Posted from my CrackBerry at wapforums.crackberry.com
Printable View
I plan to make those operators (>,<,!=,==) available for both "While" and "If" macros.
Posted from my CrackBerry at wapforums.crackberry.com
I am not sure if there is an API to get CPU load. I will look for that in the APIs.
In the mean time, I got the While-loop working. I also added support for Not ('!' In front of a ISxxxx macros), and added following maros:
- Vibrator xxx (BB vibes for xxx mSecs.)
- SetBrightness xxx (sets lcd brightness to xxx value)
- BackLightOff
- BackLightOn
- IdleSeconds. (Returns # of seconds the device is not used)
Still testing and fine tuning. I have plans to put it on the beta link within the next 10 hours.
Posted from my CrackBerry at wapforums.crackberry.com
Vijik, i was wondering if you could check up on the restore function of SCM and what conflicts its having with "IF" statements, or if it has something to do with them being multilined. I backed up the config, upgraded the OS, restored the OS, then restored SCM config and now im missing quite an amount of shortcuts, and restored more than once and restarted the phone. Most had IF statements, but others were just plain options accessing, like the one i posted to uninstall a specific application. I basically went down from like 214 to 191.
In fact, i can see the missing shortcuts in the backup file, but they dont show or are not being restored into SCM.
Its nice to see more and more OS interactions ;D
I will check the source code and see if I find anything that can cause that.
If I can't find anything I will ask you about more info. Info that can help me to know what to look for.
Let you know.
I edited my last post :b i can see the missing shortcuts in the backup text file, but they are not being restored into SCM.
.115 is now ready for download.
Before you download:
The syntax for IF-sentence is changed. You need to remove the ';' after IFx in your macros.
The new syntax for IF is:
If2 IsInHolster;Then2;....
(no ';' after IF)
Example for the new While-Loop feature is:
While3 IdleSeconds<10;Do3; Vibrate 300; delay5000; EndWhile3;/* your main macros*/
If this macro is called using Scheduled Launch, then it will not do anything before 10 seconds after you don't touch your BB. As you are using your BB, it will warn you by vibrating your BB.
(the number after While, Do, EndWhile can be a number between 0 and 9)
Operators supported for While and If are:
>, <, !=, ==
Adding a ! in front of a macro starting with IS will toggle the result that macro.
Make sure you don't end up in a infinite While loop!
Good news.
Would you be able to email (support at shortcutme dot com) the ones not showing up?
You want me to email these or post them here?
edit: Just sent you the email, they are not hidden, they are just not restoring into SCM, as i did a backup with the current ones and the ones that didnt get restored are not showing in the backup file. I made a backup of the old backup file though.
can i make a macro to upload photos from bb to a certain page on CB?
and how would i do it. i have not made any macros yet i have a Torch on OS 6.0.0.534 if you needed to know
I believe that I have discovered a bug in this latest build (, but it may have been hidden in previous versions)...
App. Name: (Blank) or Nothing
Macro:While0 IdleSeconds<10; Do0;Vibrate 50; Delay100; Vibrate50;EndDo0;
Delay5000;
Launch APPLICATION;
Delay1000;
Launch Home Screen;
In this case, I am trying to launch APPLICATION in the background only if there is no recent keyboard activity. The shortcut does not show up in the ShortcutMe shortcut list (apparently due to the empty App. Name) even though the shortcut can be invoked by typing the shortcut key. The primary issue is that I can no longer edit the shortcut.
Visortgw, SCM is supposed to inform you about missing AppName and not allow you to leave the Shortcut Setting page without selecting an AppName.
I will fix this soon.
You can bring that shortcut to life by adding an AppName to that shortcut in the shortcutmeconfig.txt on the root directory of your micro SD card and then hit Restore menu item in SCM.
Posted from my CrackBerry at wapforums.crackberry.com
The first step in writing SchortcutMe macros is to find out how you can do the same task manually on your BB.
Posted from my CrackBerry at wapforums.crackberry.com
@Vijik: Two items:
- It validates on creation, but not NOT edit. Please don't "fix" the missing AppName validation too quickly. ;) Given your new conditional macros (i.e., if, else, while, ...), it is often desirable NOT to launch an app until a certain condition is met. For example, if the device is not idle, wait until it is before launching a background app. Could you possibly allow "Nothing" (or the like) as a valid AppName, and just process the macro?
- It appears that the IsAppRunning macro is now backwards -- I now need to put the "!" operator in front of IsAppRunning instances that used to work.
@visortgw
If you don't want anything to be launched, AppName should be set to Macro.
IsAppRunning and IsAppForeground macros don't work at all on .115
I have to fix that too.
Posted from my CrackBerry at wapforums.crackberry.com
@Vijik: You, sir, are amazing! :D The Macro AppName is exactly what I was looking for! This application is super flexible, and it just gets better with every release.
Please let me us know once the IsAppRunning and IsAppForeground macros are fixed.
Thanks again!
Thanks.
.116 is ready for download.
New in .116:
- IsAppRunning and IsAppForeground macros should now work (Please confirm)
- When creating/editing a shortcut, the AppName should be set to anything else than 'Nothing', otherwise a warning message will pop up.
- Shortcuts with AppName not set, should now show up in the main screen (please confirm)
(gbsn, can you see all of your 214 shortcuts now?)
IsAppRunning is still not working if the app name contains a blank (e.g., "Skype mobile") -- it appears to always return FALSE. :confused:
Currently spaces are deleted by the macro engine before decoding, and that causes this for apps with space in their name.
I will fix it.
Those macros, unlike in .115, work in .116 for apps without space in their name.
Posted from my CrackBerry at wapforums.crackberry.com
Using string notation? isapprunning "skype mobile" :b
As for the shortcuts, they are not in the list because they didnt get restored, not because they are hidden or app name is set to nothing. I never set app name to nothing, i may have like 3 o 4 like that from uninstalled applications, but apart from these, they either have macro or the application in app name. Its actually something to do with the way it restores shortcuts with multi lined macros, as all macros i had multi lined are gone :(, I will just type them again using my old backup, but this time in one line.
.117 has the fix for the problem reported regarding apps with space in their name.
So, it should be okay to have a macro like this:
While2 IsAppRunning Skype Mobile;Do2;.....;EndWhile2;....
gbsn, no need for "" even that it was a good idea.
I will (hopefully) fix the restore issue in the next rev.
I don't think the problem is the line shift in your macros.
Do you see
<NewFormat>
on top of shortcutme's backup file on micro SD card?
The problem might be that the New Format Reading doesn't kick in when you are restoring your shortcuts.
If you can wait a day, I try to fix this issue so that you don't need to rewrite your macros.
Confirmed!
Good. Thanks.
gbsn,
I take back what I wrote about the line shift.
The problem IS the line shift. I am working on a fix for that.
.118 is ready for download.
Your macro shortcuts with multi lined macros should now get restored using Restore Config menu item.