question

JerryMerrill-0403 avatar image
0 Votes"
JerryMerrill-0403 asked Viorel-1 commented

How to jump from one field to the next on a web page from a VB String

I have ten fields on a third party web page that I want to fill using a String placed on the clipboard.
I tried using vbTab to tab from one field to the next, but when I pasted the long string into the field,
everything was output into that one field. What would I use to jump to the next field instead of vbTab?

     partOne = fullTNtext + vbTab + "Family History Library" + vbTab + usrName + vbTab + "MS"
     partTwo = vbTab + dateTime + vbTab + vbTab + dateTime + vbTab + vbTab + imageChr
     partTree = vbTab + usrName + vbTab + dateTime + vbTab + vbTab + dateTime
     clipText = partOne + partTwo + partTree
     Clipboard.SetText(clipText)
dotnet-visual-basic
· 6
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @JerryMerrill-0403 ,
What's the type of your application?
You cannot use 'Clipboard' to jump from one field to the next.
Could you provide more details about your web page?

0 Votes 0 ·

It is more or less a data entry application. I get a TitleNumber (TN) from the ClipBoard. I get a preFix, usrName and imageCount from a VB screen. The logic adds standard values for two other fields and date/time for four fields. I want to string this all together and put it on ClipBoard.Text so that the user can then go to the first of ten fields, hit Ctl-v and have all ten fields filled in.

I have no access to the design or logic of the web page.

I am able to paste ClipBoard.Text into a Word page. Everything, including tab characters, looks as desired. So the browser must be converting the vbTab's to spaces... Is there some other kind of tab-keystroke that would not be converted to a space???

0 Votes 0 ·

Hi @JerryMerrill-0403 ,

the browser must be converting the vbTab's to spaces

Do you want to use '&nbsp'?
A reference you may need: When to use &nbsp


0 Votes 0 ·
Show more comments

Maybe you can ask the authors of the third-party application to support this useful feature. It can be probably done in JavaScript by intercepting the Paste event.


0 Votes 0 ·

0 Answers