1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can this be done, if so, how

Discussion in 'Support' started by drrob1, Mar 29, 2009.

  1. drrob1

    drrob1 Guest

    Hi. I get a sense that tcmd can do this, but I don't know how.

    Problem: MagicJack displays a dialog box on the pc when there is an incoming call. It waits for a minute or so for the user to click yes, else the call goes to voicemail. I would like to automatically feed that dialog box a keystroke whenever it appears.

    I was thinking something like waiting for a window w/ that title, and when found feed it "Y"

    Can this be done in tcmd, and how?

    Thx,
    Rob

    PS: I posted this via email 8 hrs before coming to the website to post this. I see no record of the email being processed.

    Email posting definitely is broken. Wish we could go back to the reliability of sparkware.
     
  2. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,523
    Likes Received:
    4
    drrob1 wrote:
    | Hi. I get a sense that tcmd can do this, but I don't know how.
    |
    | Problem: MagicJack displays a dialog box on the pc when there is an
    | incoming call. It waits for a minute or so for the user to click
    | yes, else the call goes to voicemail. I would like to automatically
    | feed that dialog box a keystroke whenever it appears.
    |
    | I was thinking something like waiting for a window w/ that title, and
    | when found feed it "Y"
    |
    | Can this be done in tcmd, and how?

    Start a new TCC instance with the following code:

    do forever
    do until iswindow "MagicJack"
    delay 5
    enddo
    activate "MagicJack %+ keystack "y"
    do while iswindow "MagicJack"
    delay 1
    enddo
    enddo

    Naturally, you need to change the window title; you may want to adjust the
    delay durations. UNTESTED!

    |
    | Thx,
    | Rob
    |
    | PS: I posted this via email 8 hrs before coming to the website to
    | post this. I see no record of the email being processed.
    |
    | Email posting definitely is broken. Wish we could go back to the
    | reliability of sparkware.

    My response is submitted by email. We'll see how long it takes for it to
    appear in my own inbox.
    --
    HTH, Steve
     
  3. dbartt

    Joined:
    May 29, 2008
    Messages:
    36
    Likes Received:
    0
    I would try something like:

    do while not iswindow name
    delay n
    enddo
    activate window
    keystack

    Dennis
     
  4. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,523
    Likes Received:
    4
    Steve Fábián wrote:
    | drrob1 wrote:
    || PS: I posted this via email 8 hrs before coming to the website to
    || post this. I see no record of the email being processed.
    ||
    || Email posting definitely is broken. Wish we could go back to the
    || reliability of sparkware.
    |
    | My response is submitted by email. We'll see how long it takes for it
    | to appear in my own inbox.

    It took 3 min: I sent it at 17:21, and received it back at 17:24 (US EDT).
    --
    Steve
     

Share This Page