Re: Copying to clipboard

Guy Schlosser

Hey there Tom, I just got off work and had a chance to read your email. I actually figured it out, but thanks for the quick response. Using that get word function, I got the idea for a couple other script that I wrote for the same program.

Sent from my iPhone

On Jan 15, 2016, at 3:42 PM, Bissett, Tom <> wrote:

Hello Guy, I am glad I can help.
What you are looking for is 'getword' it should look like
Let PhoneNumber = GetWord()
You do need to declare the variable PhoneNumber, I would declare it as a global variable. Generally near the top of the script these are done as an example
String PhoneNumber
That way if you need to tab away from the screen you won't lose the content of the variable.
Give it a try
Tom Bisset
Wealth Management Technology
BMO Financial Group
Tel: (647) 258-8502

-----Original Message-----
From: Guy Schlosser []
Sent: Friday, January 15, 2016 3:17 PM
Subject: Re: Copying to clipboard

Hey Tom, that is exactly what I was looking for. Question though, what is the easiest way to get the phone number into a variable. Something like phone number equals nextword() seems like it should work, but next word expects a void type. Any ideas? Thanks for the quick response.

Sent from my iPhone

On Jan 15, 2016, at 9:37 AM, Bissett, Tom <> wrote:

Hi, there is a jaws function called CopyToClipBoard. If you are putting the phone number in a variable then you can do a "CopyToClipBoard(TheNumber) and then you can paste it where you want.
I do not find a paste function but you could do that manually using control+v.
Tom Bisset
-----Original Message-----
From: Guy Schlosser []
Sent: Friday, January 15, 2016 7:40 AM
Subject: Copying to clipboard

Hi all, I have a question for anyone who knows about scripting. How do you programmatically copy the word under the Giants cursor to the clipboard? I am trying to create a script to make the program more accessible that I have to work with during my job. What I want to do, is make jaws find the phone number that I need to call, copy it to The clipboard, and pasted where my cursor is located. I got the finding the phone number part down, now if I could figure out how to copy and paste it. Any help would be greatly appreciated.


Guy Sent from my iPhone

Join to automatically receive all group messages.