Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Can this be done, if so, how

D

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.
 
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
 
> 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?

I would try something like:

do while not iswindow name
delay n
enddo
activate window
keystack

Dennis
 
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
 
Back
Top