You cannot get the highlighted text from Acrobat JavaScript, but you can get it from VB application (whether it's .Net or not). Take a look at the Acrobat Inter-Application Communication(IAC) reference. There's a PDTextSelect Object. You'll find this document here: http://www.adobe.com/devnet/acrobat/
Thom Parker The source for PDF Scripting Info [url=http://www.pdfScripting.com]pdfscripting.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often [url=http://www.adobe.com/devnet/acrobat/]http://www.adobe.com/devnet/acrobat/[/url]
http://www.adobe.com/devnet/acrobat/
Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/]http://www.adobe.com/devnet/acrobat/[/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script