04-04-2017 09:58 AM
Hello, I'm developing an application where I need to retrieve text from the browser using keyboard and mouse automation. My problem is that the text won't go to clipboard using Ctrl+C if the VI where the browser is placed was called by another VI which is the case of my application.
Obs: If I use the right click I can retrieve the text using Copy Data however this process can make the application unreliable.
I hope you can help me.
Thanks,
Erick
04-04-2017 10:25 AM
seems to work for me...
Select text, press Ctrl+C, it shows in clipboard string indicator
04-04-2017 10:32 AM
Hello, Alexander_Sobolev. That also worked for me, the problem is how you start this Untitled 1 VI, when I call it by another VI using Call By Reference or Asynchronous Call By Reference, the command Ctrl+C doesn't work.
04-05-2017 05:34 PM
Calling subVI by reference with .net webcontainer updates clipboard everywhere. System clipboard is a very global variable =).
It is possible to discard buttons presses in LabVIEW, or some web-sites like to block Ctrl+C and copying.
Do you change focus from web container to some part of VI, then press ctrl+C? Then web page text selection is still highlighting, but ctrl+C will not see this selection.
04-06-2017 10:54 AM
I use another browser instance in the other VI, but I can't copy even the data written in controls, luckily as the browser is an activeX instance, I had access to the right click menu, so my solution was to generate a right button click, pressed two times DOWN key to highlight "Copy" and pressed ENTER. It solved my problem but this strategy won't work on other controls.