Announcement

Collapse
No announcement yet.

Any ideas how to execute a command when phone connects to Freefone?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Any ideas how to execute a command when phone connects to Freefone?

    looking for a way to to execute a command when freefone connects to a phone. I can see from skintool that freefone regularly sets a label which contains OFF and ON. any way i can check the string in regular intervals and set a variable true false??

    any ideas welcome...

    what i am basically trying todo is that as soon as my carpc detects the phone in range via blue tooth to open the doors via fusionbrain...

  • #2
    You can place a TMR definition on a skin to execute a command on a timed interval (or you can use RRExtender's global timer feature).

    However, there's no way to check the contents of a custom label right now (because we assume that the application setting the label already knows the content), which means that would have been added.

    In any case, if you can find a COMMAND that Freefone executes when the phone is connected, you can try to execute something using exectbl.

    for instance, if freefone executes this command to set the label when it first comes on:

    "SETLABEL;CUSTOMCONNECTED;ON"

    you can try adding to exectbl:

    "SETLABEL;CUSTOMCONNECTED;ON","MYCMD"
    "MYCMD","<COMMAND>||SETLABEL;CUSTOMCONNECTED;O N"

    However, you may need to use variables and so on to prevent your command from executing several times and so on.
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

    Comment


    • #3
      hmm perhaps there is an app that can detect bluetooth traffic and simulate a keystroke?...

      just hoping here

      this is how the command looks like btw "SETLABEL;CUSTOMFREEFONE;[email protected]@0@"

      Comment


      • #4
        the program sets the label like this every couple of seconds or so:


        SETLABEL;CUSTOMFREEFONE;[email protected]@[email protected]@

        i tried:

        SETVARBYCODE;WOOT;CUSTOMFREEFONE

        then i would use RR extended to truncate the string. however i cant get SETVARBYCODE to set variable WOOT to label CUSTOMFREEFONE

        also tried (FREEFONE and !FREEFONE).... could it be @ symbols?

        Comment


        • #5
          Try:
          Code:
          "SETLABEL;CUSTOMFREEFONE;[email protected]@0@","MYCMD"
          "MYCMD","<COMMAND>||SETLABEL;CUSTOMFREEFONE;[email protected]@0@"
          You can't "read" CUSTOMFREEFONE with setvarbycode.
          Ride Runner RR's Myspace

          "Being happy is not about having what you want, it's about wanting what you have."
          "The best things in life are always free - but that doesn't mean money can't buy you good things."

          Comment

          Working...
          X