08-17-12 12:57 PM
46 12
tools
  1. Vijik's Avatar
    This thread is created to help those new to ShortcutMe understand
    the basics about macros and to help them start writing their own
    macro shortcuts.
    __________________________________________________ _______


    Macros are a series of commands written by users and executed by ShortcutMe.

    The core set of macro commands are based on simulating a user input (Key Click, Navigation with TouchPad and Touch Screen).
    So those macros does what you would do on your BlackBerry.
    For example 'MenuKey' macro clicks the BB/Menu key.

    Simple macro examples will follow in the posts below
    Last edited by Vijik; 12-10-11 at 08:38 AM.
    12-07-11 07:12 AM
  2. Vijik's Avatar
    - Macro shortcuts can be launched like any other shortcut in ShortcutMe by:

    1- Multiple clicking a convenience key
    2- Multiple clicking the Space key (if it is not set to anything else)
    3- Entering its shortcut keys in ShortcutMe
    4- Directly clicking on the shortcut list in ShortcutMe
    5- Stroke on keys on the virtual keypad (for BB models with touch screen)
    6- Selecting it from the BB Menu from any other app/screen (Custom System Menu feature in ShortcutMe)
    7- Automatic Launch at a specific time of a day in a week (Scheduled Launching feature in ShortcutMe)
    8- Directly hitting a hot key in BB Home Screen (If you have MyOwnIcons application)
    9- Directly hitting an icon on BB Home Screen (If you have MyOwnIcons application)
    10- Multiple clicking a media key (If you have MedieKeyBooster application)
    11- Tapping a NFC tag (if you have NFCShortcuts application)
    Last edited by Vijik; 12-07-11 at 07:50 AM.
    harist3a likes this.
    12-07-11 07:12 AM
  3. Vijik's Avatar
    How to write a "Hello World" macro shortcut in ShortcutMe:

    - Open ShortcutMe and hit BB/Menu key and select "Add Shortcut"

    - Setup the shortcut as shown below:

    AppName: Macros
    Shortcut Keys: HW (You can set it to anything. This is just an example)
    Macros:
    Delay 200; /*Wait for the Java UI (User Interface) to switch*/
    Show Hello World; (Opens a panel showing the message: Hello World)



    To run this shortcut use one of the methods mentioned in the post #2 above.
    Last edited by Vijik; 12-07-11 at 07:53 AM.
    12-07-11 07:13 AM
  4. Vijik's Avatar
    Macro for toggling Wifi ?

    Create a shortcut like this:

    AppName: Macros
    Shortcut Keys: TWF (or anything else you want)
    Macros:
    Launch Manage Connections; /*Opens Manage Connections*/
    Delay 200; /*Waits for Manage Connections to open*/
    NavMoveDown 1; /*Moves the cursor down (over WiFi in Manage Connections)*/
    NavClick; /*Simulate a click (on Wifi in Manage Connections)*/
    Delay 400; /*Waits for BB OS to toggle Wifi */
    ESCKey; /*Hits Escape key to close Manage Connections*/
    Last edited by Vijik; 12-10-11 at 08:35 AM.
    12-07-11 07:14 AM
  5. Vijik's Avatar
    Macro for showing Device Info in Options?

    Create a shortcut like this:

    AppName: Macros
    Shortcut Keys: DIN (or anything else you want)
    Macros:
    Launch Options; /*Opens Options*/
    Delay 200; /*Waits for Options to open*/
    Keypin; /*Simulates p i n clicks in Options (to find PIN)*/
    Delay 100; /*Waits for BB OS to search for PIN*/
    NavClick; /*Clicks to open the found item (PIN/Status page)*/
    Last edited by Vijik; 12-10-11 at 08:35 AM.
    12-07-11 07:14 AM
  6. Vijik's Avatar
    Macro to list all Map apps on your BB?

    Create a shortcut like this:

    AppName: Universal Search
    Shortcut Keys: M (or anything else you want)
    Macros:
    Delay 200; /*Waits for Universal Search to open*/
    KeyMap; /*Enter M a p in Universal Search*/[/SIZE]
    Last edited by Vijik; 12-10-11 at 08:36 AM.
    12-07-11 07:16 AM
  7. Vijik's Avatar
    Another place holder.
    12-07-11 07:20 AM
  8. Vijik's Avatar
    Place holder for more macro examples.
    12-07-11 07:51 AM
  9. Vijik's Avatar
    Another place holder for more macro examples.
    12-07-11 07:51 AM
  10. Vijik's Avatar
    Yet another place holder for macro examples.
    12-07-11 07:52 AM
  11. sushistew's Avatar
    thanks for the easy instructions, i am sure this will help people a lot.
    12-07-11 11:23 AM
  12. Vijik's Avatar
    thanks for the easy instructions, i am sure this will help people a lot.
    Hopefully so.

    This thread could be a place for newbies to start reading about macros before getting exposed to macros written by macro experts like the ones in this thread:

    http://forums.crackberry.com/blackbe...rchive-663605/
    12-10-11 08:43 AM
  13. mfreedmn97's Avatar
    Macro for toggling Wifi ?

    Create a shortcut like this:

    AppName: Macros
    Shortcut Keys: TWF (or anything else you want)
    Macros:
    Launch Manage Connections; /*Opens Manage Connections*/
    Delay 200; /*Waits for Manage Connections to open*/
    NavMoveDown 1; /*Moves the cursor down (over WiFi in Manage Connections)*/
    NavClick; /*Simulate a click (on Wifi in Manage Connections)*/
    Delay 400; /*Waits for BB OS to toggle Wifi */
    ESCKey; /*Hits Escape key to close Manage Connections*/
    Ok thanks fo rthis. I get it. BUT let's say I want to combine more than one item in a macro. Say toggle wifi and switch to SILENT RING PROFILE.

    I set up the following :

    above macro plus :

    Launch Profiles;
    delay 200;
    navmovedown 5; (silent ring is the 5th profile down the list)
    navclick;
    delay 400;
    esckey;

    The probelm is that this will indded go to profiles and nav click 5 down - but not form the top of the list - only from the point at which the current profile is set already. What step am I missing ?

    TIA
    12-14-11 12:24 PM
  14. Vijik's Avatar
    Use "MenuItemFromTop 5" macro instead of "NavMoveDown 5".
    12-14-11 01:35 PM
  15. mfreedmn97's Avatar
    Use "MenuItemFromTop 5" macro instead of "NavMoveDown 5".
    Ok great success - that worked.

    So now the seocnd part is :

    launch profiles;
    delay 200;
    menuitemfromtop 5:
    navclick;
    delay 200;

    and I want to add a bedside mode toggle now so I've also added :

    launch bedsidemode_toggle;

    ....but it will not go into bedside mode. Do I have to activate somethng else ? it brings up the clock but does not enter BEDSIDE MODE. I am thinking I still have to activate a menu of some kind, then delay 200; then menuitemfromtop 4; then navclick;

    Again some help required. After that I think I have the gist of it. Appreciate the prompt reply. Great app
    12-14-11 02:06 PM
  16. gbsn's Avatar
    Ok great success - that worked.

    So now the seocnd part is :

    launch profiles;
    delay 200;
    menuitemfromtop 5:
    navclick;
    delay 200;

    and I want to add a bedside mode toggle now so I've also added :

    launch bedsidemode_toggle;

    ....but it will not go into bedside mode. Do I have to activate somethng else ? it brings up the clock but does not enter BEDSIDE MODE. I am thinking I still have to activate a menu of some kind, then delay 200; then menuitemfromtop 4; then navclick;

    Again some help required. After that I think I have the gist of it. Appreciate the prompt reply. Great app
    launch net_rim_bb_clock;
    delay200;
    *keyb;
    esckey;
    12-14-11 02:18 PM
  17. Vijik's Avatar
    If you want your one shortcut first set profile to Silent mode and then toggle bedside mode add the following to your macro:

    ESCKey; (closes the Profile screen)
    Launch net_rim_bb_clock; (launches Clock)
    Delay200; (wait til Clock app opens)
    MENUKey;
    Delay100;
    NavMoveDown 2; (go to Bedside mode related item)
    NavClick;

    (Many ShortcutMe's functions (like BedsideMode_Toggle) are macro-based. Don't mix your macros with macro-based functions. That is why 'Launch' macro is used in the macro above))
    12-14-11 02:22 PM
  18. mfreedmn97's Avatar
    If you want your one shortcut first set profile to Silent mode and then toggle bedside mode add the following to your macro:

    ESCKey; (closes the Profile screen)
    Launch net_rim_bb_clock; (launches Clock)
    Delay200; (wait til Clock app opens)
    MENUKey;
    Delay100;
    NavMoveDown 2; (go to Bedside mode related item)
    NavClick;

    (Many ShortcutMe's functions (like BedsideMode_Toggle) are macro-based. Don't mix your macros with macro-based functions. That is why 'Launch' macro is used in the macro above))
    Ok I got it. Sorry one more....

    Is there way to toggle between SILENT MODE and LOUD MODE. IE : Phone is in SILENT MODE. Want to change to LOUD MODE. BUT IN SAME MACRO if I am now in LOUD MODE and I tap go into SILENT MODE ??
    12-14-11 02:40 PM
  19. Vijik's Avatar
    If2 GetProfileVolume>10;
    Then2;
    /*macros for clicking on Silent*/
    Else2;
    /*Macros for clicking on LOUD */
    EndIf2;
    Last edited by Vijik; 12-14-11 at 07:30 PM.
    fbloise likes this.
    12-14-11 03:12 PM
  20. mfreedmn97's Avatar
    If2 GetProfileVolume>10;
    Then2;
    /*macros for clicking on Silent*/
    Else2;
    /*Macros for clicking on LAOD */
    EndIf2;
    Wow, that one I NEVER would have gotten right. Thanks. Good job.
    12-14-11 06:01 PM
  21. franzfume's Avatar
    I have a problem in creating a chained "toggle" macro for using shortcutme +NFC
    All that I like to write is a single macro that:

    leaving home:

    off wifi
    turn off BT
    turn on GPS
    sound high-profile

    entering home

    off bt
    on wifi
    off gps
    sound normal profile


    I have tryed ANY time whit no luck,.....
    can someone tell me the right way???
    thanks alot
    12-15-11 03:29 AM
  22. Vijik's Avatar
    Shortcut to toggle GPS:

    AppName:Macro

    Macros:
    Launch options;
    Delay 200;
    keyLocation;
    Delay 100;
    NavClick;
    Delay 100;
    NavMoveDown 1;
    SPACEKey;
    ESCKey;
    Delay 100;
    NavClick;
    ESCKey;
    ESCKey;
    12-15-11 01:09 PM
  23. andy.duli's Avatar
    Need a help or suggestion.

    I do not have a BB password entered since I don't want to lock the ICE (In Case of Emergency) app and a slide lock app. (I have another app that locks all the other appss.) The slide lock app I like best (there are differences) cannot be started except from the lock button on top of the Torch 9850.

    I can't seem to get ShortcutMe to toggle that button. Tried the Lock funtion, but it doesn't do anything, maybe because there is no password.

    I know Slide2Open Pro uses a seperate icon to bypass the need to toggle the Lock button, but using that app would be my last resort.

    I could not find a "net_rim_bb_lock......" module to launch.

    Any help or suggestions?

    Thanks,
    Andy
    12-19-11 05:31 PM
  24. axemcc's Avatar
    Need a help or suggestion.

    I do not have a BB password entered since I don't want to lock the ICE (In Case of Emergency) app and a slide lock app. (I have another app that locks all the other appss.) The slide lock app I like best (there are differences) cannot be started except from the lock button on top of the Torch 9850.

    I can't seem to get ShortcutMe to toggle that button. Tried the Lock funtion, but it doesn't do anything, maybe because there is no password.

    I know Slide2Open Pro uses a seperate icon to bypass the need to toggle the Lock button, but using that app would be my last resort.

    I could not find a "net_rim_bb_lock......" module to launch.

    Any help or suggestions?

    Thanks,
    Andy
    In version 5.9.5.1_OS7_T, there is a macro command called KEYPADLOCKKey. That activates the lock button (on my bold anyway).
    12-23-11 12:43 PM
  25. whataday's Avatar
    If2 GetProfileVolume>10;
    Then2;
    /*macros for clicking on Silent*/
    Else2;
    /*Macros for clicking on LOUD */
    EndIf2;
    Hello!

    When you input "if2" what does that mean? What does the number really mean?

    /*macros for clicking on silent*/
    What does that mean?

    I am trying to understand the commands here.

    I have looked at other poeple's macro and cannot figure out.

    Also, what is the macro based?

    thanks!
    01-17-12 04:16 PM
46 12
LINK TO POST COPIED TO CLIPBOARD