Home AMX User Forum NetLinx Studio

Using Keyboards to Dial on Tanberg C60

Hi all.

It's late and my brain has stopped functioning for to day, and i wanna make sure i get it right when i start up tomorrow.

I'm using keyboards to dial on a tandberg c 60.

the string to tandberg looks like this:
SEND_STRING dvTandberg, "'xCommand Dial Number:xxxxxxxxxxx Protocol:h323 CallType:Video',$0D"
i need to put whatever thats typed on the keyboard and put it in this string. I also changed the look of the done button to look like dial, how can this be used to create the string and dial in one push?


It's the first time i try this and i'm out on deep water so i would appriciate if you guys could please help me with the coding aswell. like an example.

Thanks in advance.

Comments

  • i also want to know how i can send each letter typed once they are typed to trigger a live search?
  • DHawthorneDHawthorne Posts: 4,584
    I would use the built-in keyboard (or keypad, as is appropriate for the device) in all G4 panels ... and if you don't like the default look, you can copy it (open system templates in TPD4 to do this) and tweak it to your taste. In fact, I make a copy for every device that may need a keyboard, just to make parsing the output easier. The built in keyboard has the very big advantage of handling all your shift and special characters, as well as letting you edit what is being typed before sending it out, which is very important for the end user ... no one keys in numbers or even text perfectly every time.

    The key to this is editing the name of the text button, then using a STRING event handler. Whatever gets typed will be sent as a string on port 1 (you can't change the port, sadly), with the name of the text button tacked on the front. The default name is "KEYB-", so if you typed in 12345, you will get a string event with the DAT.TEXT saying "KEYB-12345." That is why I rename it by device, so I can parse out which device I got that event for. After you test for the correct prefix, you strip it out with REMOVE_STRING and parse and format as necessary. Keyboards and keypads all work the same; it's just a matter of what buttons are available.
  • if i get this right i should be able to see this with the device notification turned on and showing everythin coming from 10001:1:1

    I'm Not getting anything on that port, i've changed the name from _keyboar to keyboard dial to separate them from eachother.

    Any of what i'm doing wrong?
  • It would also be nice if someone could help me with the coding on this one. i just get the error that i cant turn a string into a integer???
    DATA_EVENT[dvTP]
    {
        STRING:
        {
            stack_var char sIncMsg[50]
    	{
    	    SELECT
    	    {	
    		ACTIVE(FIND_STRING(sIncMsg,'VC-Keyboard-Dial-',1)):
    		{
    		    remove_string(sIncMsg,'VC-Keyboard-Dial-',1);
    		    nDial = (sIncMsg);
    		    SEND_STRING dvTandberg, "'xCommand Dial Number:',(nDial),'Protocol:h323 CallType:Video',$0D"    
    		}	
    	    }	 
    	}
        }
    }
    
  • DHawthorneDHawthorne Posts: 4,584
    You aren't actually assigning the string output to your variable. Right after you declare sIncMsg, add the following line:

    sINcMsg = DATA.TEXT ;
Sign In or Register to comment.