There is no doubt in my mind that a solution is possible using B4J, but if you prefer to use Visual Studio I'm sure all here will wish you success.
But if you want to find a solution with B4, I feel you need to explain "what you are trying to do" as per the comment of
@Erel above. My experience with B4J has been that the community here will always assist to find a solution with the best assistance coming when one explains the objective clearly. Just providing a small piece of code which doesn't achieve the desired outcome is generally not sufficient.
The community here helped me with a similar problem when I was trying to "screen scrape" some website data, but that required me to explain my objective and indicate the URL of the website concerned.
So perhaps you could describe what the code needs to do and the target URL, and let's see if we can help.