No problem. It's just a starting place and you can insert a lot more functionality to it depending on what you need to do. ----- Original Message ----- From: "Tom R" <twr6444@xxxxxxxxx> To: <jawsscripts@xxxxxxxxxxxxx> Sent: Wednesday, December 21, 2011 6:39 PM Subject: [jawsscripts] Re: Scripting Approach Bob, Thanks so much. That gives me a great start. I will let you know how I make out. Thanks! Tom ________________________________ From: Bob J. <rjustice004@xxxxxxxxxx> To: jawsscripts@xxxxxxxxxxxxx Sent: Wednesday, December 21, 2011 11:17 AM Subject: [jawsscripts] Re: Scripting Approach Hello Tom, You stated: ... I have one application that presents a telephone number (10 digits) that is read by Jaws and then needs to be input into another application ... . A straight cut and paste won't work since the telephone number in the database program is 2 seperate fields, area code and phone number. You didn't state whether or not the 10-digits in application1 are already selected, ready for copying into the clipboard and you didn't indicate whether or not the PC cursor was located on the first digit or the last digit or neither. Here is my suggestion: Assuming that you are currently looking at application1 and the 10-digit number in application1 is NOT already highlighted and further assuming that the PC cursor is on the leftmost digit: Step 1. Activate my Script1 (see below) which you have placed in the *.jss file for application1 and has been compiled successfully by you. This script1 will place the first 3 digits of the 10-digits into the clipboard and will place the remaining 7 digits into a JFW global variable. Step 2. Now, go to your application2 and place the PC cursor where the area code should be pasted. Step 3. Paste the area code from the clipboard into that field. Step 4. Now, still in your application2, place the PC cursor where the remainder of the telephone number should be pasted. Step 5. Activate my Script2 (see below) which you have placed in the *.jss file for application2 and has been compiled successfully by you. This script2 will copy the remaining 7 digits of the original 10-digits from the JFW global variable into the clipboard. Step 6. Paste the 7-digit number from the clipboard into that field. Step 7. This one is up to you! Code for the two scripts is given below. The script named "GetPXNum ()" must be included in the *.jss file for your application1 and must be successfully compiled before it will function The script named "GetLastSeven ()" must be included in the *.jss file for your application2 and must be successfully compiled before it will function The Global variable named "SevenDigits" MUST be declared appropriately near the top of both of the *.jss files of interest here. When you create these scripts within the JFW Script Manager, you may assign them to whatever hot key combinations suits your fancy. ;--------------------- begin code to be used with *.jss file for application1 ------------ Globals String SevenDigits Script GetPXNum () ; activate with CTRL+SHIFT+1 ; written 12/20/2011 by rwj Var Int DigitCount, String ThreeDigits Let ThreeDigits = "A" Let SevenDigits = "A" Let DigitCount = 0 While DigitCount < 3 Let ThreeDigits = ThreeDigits + GetCharacter () NextCharacter () Let DigitCount = 1 + DigitCount EndWhile CopyToClipboard ( StringRight ( ThreeDigits, 3 )) Let DigitCount = 0 While DigitCount < 7 Let SevenDigits = SevenDigits + GetCharacter () NextCharacter () Let DigitCount = 1 + DigitCount EndWhile SayString ( "AreaCodeIsInClipBoard" ) EndScript ; GetPXNum () ;--------------------- end code to be used with *.jss file for application1 ------------ ;--------------------- begin code to be used with *.jss file for application2 ------------ Globals String SevenDigits Script GetLastSeven () ; activate with CTRL+SHIFT+2 ; written 12/20/2011 by rwj CopyToClipboard ( StringRight ( SevenDigits, 7 )) SayString ( "RemainderOfPhone#IsInClipBoard" ) EndScript ; GetLastSeven () ;--------------------- end code to be used with *.jss file for application2 ------------ I have tested this code using JFW 6.2 running on Windows2000Pro. hth Bob ----- Original Message ----- From: "Tom R" <twr6444@xxxxxxxxx> To: <jawsscripts@xxxxxxxxxxxxx> Sent: Monday, December 19, 2011 8:25 PM Subject: [jawsscripts] Scripting Approach Hi All, New to scripting and need some advice on how to approach a problem. I have a situation where I have one application that presents a telephone number (10 digits) that is read by Jaws and then needs to be input into another application to do a database lookup to read back the customer information. A straight cut and paste won't work since the telephone number in the database program is 2 seperate fields, area code and phone number. Doing two cuts and pastes is too cumbersome. Any ideas? Thanks! __________o? View the list's information and change your settings at http://www.freelists.org/list/jawsscripts __________� View the list's information and change your settings at http://www.freelists.org/list/jawsscripts __________� View the list's information and change your settings at http://www.freelists.org/list/jawsscripts __________� View the list's information and change your settings at http://www.freelists.org/list/jawsscripts