Selected Text is 1 behind?

Page 1 of 1

2 Replies - 184 Views - Last Post: 02 February 2012 - 10:11 AM Rate Topic: -----

Topic Sponsor:

#1 VolcomMky  Icon User is offline

  • D.I.C Regular

Reputation: 67
  • View blog
  • Posts: 261
  • Joined: 13-May 09

Selected Text is 1 behind?

Posted 01 February 2012 - 04:34 PM

Not sure how to word this problem, but here it goes.

I have connected 3 programs to talk to each other,

1 Phone System ( Vertical Wave Viewpoint )
2 Dataphone Click2Dial ( Connects to Phone System and Dials )
3 Custom Program to Trigger the Click2Dial program

1 and 2 have no command line switches/arguments
I have tried running the exe with -call:0005551234 and a few other variations but no documentation.

Vertical wont let people develop for their system or get admin docs without paying $100/seat of the software you create yourself (stupid.. they charge you to use a program you create to communicate with their program)

Anyways, Click2Dial works by highlighting a phone number and using a Hot Key and it will start dialing.

So to make it more convenient I wanted to set it up to dial out when a telephone protocol is clicked on a browser, so any phone number in a url like <a href="tel:5551234444">5551234444</a>

To do this, programs 1 & 2 would need a command line argument (which neither have documentation on), so I am creating a program that is triggered to handle the "tel" protocol and accepts command line argument for the phone number.

Once it takes the number it puts it in a Textbox, highlights it, and triggers the Hot Keys to start dialing..

This is all working, but there is a hiccup

If I click a number (1111111111) it will dial blank
Then if I click another number like (2222222222), it will dial (1111111111)
Then if I click (2222222222) again, it will dial (2222222222)
Then if I click (3333333333) it will dial (2222222222)
And so on..

So it seems to me like it is lagging by 1 dial attempt

Does anybody have any idea why this is or what the issue could be?

Not sure if the code is needed, but here is the code that sends the selects the number and sends hot keys
TextBox1.Focus()
SendKeys.SendWait("^a")
SendKeys.SendWait("^{F10}")


Is This A Good Question/Topic? 0
  • +

Replies To: Selected Text is 1 behind?

#2 tlhIn`toq  Icon User is online

  • WillMyCodeWork = !FailedWhenYouTriedIt;
  • member icon

Reputation: 3290
  • View blog
  • Posts: 6,896
  • Joined: 02-June 10

Re: Selected Text is 1 behind?

Posted 02 February 2012 - 07:32 AM

So you're saying you want to help to hack a commercial program's API so you don't have to pay them the fees they are entitled to.

We're not going to help you do that.

Besides, you're making a huge assmption that it takes something plain like the phone number in a human-readable format. Since they want to protect their intellectual property this is probably not the case. That hotkey probably takes the selected text, confirms it, then encrypts it to match their API. That way hackers have no way of sending dating to their system.

In other words... respect people's work just as you would like your own to be respected and paid for some day.
Was This Post Helpful? 0
  • +
  • -

#3 stayscrisp  Icon User is offline

  • Lets-a play!
  • member icon

Reputation: 800
  • View blog
  • Posts: 3,691
  • Joined: 14-February 08

Re: Selected Text is 1 behind?

Posted 02 February 2012 - 10:11 AM

As tlhIn`toq said, we will not help you with this.

Thread closed.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1