Interact with webpage via webview in Metro - vb.net

Searched all night but can't find an answer, hoping someone can help me out.
I need my VB Metro app to access a webpage and programatically fill in certain fields (e.g. navigate to yahoo mail, programatically fill in username, pwd and press enter.)
I've done it many times before in desktop vb using webbrowser.document.GetElementById("whatever") but it's not an option for metro apps.
So my question is, what is the GetElementById/SetAttribute equivelent for metro?
Thanks in advance!!

Related

SendKeys VB.net

Hi ive developed a application that works with my site by using
SendKeys.send("{ENTER}") to submit info on one of my forms.
Is there a way to stop it from running outside the application?
For example im trying to run the program in the background and when im browsing my facebook or on google it randomly keeps hitting enter.
Any help is greatly appreciated thanks for your time.
The short answer is to look at the windows available for a process and check the titles to see if it's the page you want.
If System.Diagnostics.Process.GetProcessesByName("firefox").MainWindowTitle = 'My Page Title'
...
End If
That said, there are much better ways to do this - If you're using firefox, look into GreaseMonkey, if in Chrome, look at TamperMonkey.
Both allow you to inject custom javascript into any page whose url matches a pattern you choose. In effect, you could write some Javascript to submit a form (say) 30 seconds after page load.
This would have the benefit of working if a different tab is selected as well as not requiring a whole application.
The SendKeys.Send method will indiscriminately send the key stroke to the active application. There is no way to use this API to target a specific application.
You could change your app to try and verify the active application is the one you want to send keys too. This is destined to be a flaky process though. No matter how good your verification is it's always possible that the active app is switched to another app after your verification completes.
If VerifyActiveAppIsTarget() Then
SendKeys.Send("{Enter}") ' Active app could change before this runs
I would persue a different solution for sending data between my apps

UI Designer not in Solution Explorer and unable to get the tool

First of all, I am developing an application in VB.NET, till yesterday it was all good. I saved the project and closed it, now when i started working on that application, i found that there was no way to open the UI area for the application. I am able to see the code behind it i.e. on dashboard.Designer.vb but not the UI. I am able to see the the application after running it using F5. What would be the possible reason for it, and how i can solve it.
Secondly, i tried to find search a lot for this tool but unable to get any, if somebody can tell me what tool is this or any similar tool, it would be of great help.
I was searching for long and found the answer:-
What we need to do is just add the following code in the blank dashboard.vb file
Public Class dashboard
End Class
And this will get the form back.
The second question was answered by #Code Gray
1. Outlook like sidebar and display in Outlook
2. Outlook navigation bar control for .NET application

Iphone, phone gap, childbrowser and email functionality

i have recently built my first app using phone gap and have managed to get childbrowser working to open PDF's. I was wondering if anyone knew how, or if it was even possible to add email functionality to Childbrowser. Currently, in the top right of the ChildBrowser bar, there is a button that produces a drop down with the option to open it in iBooks, SIGNificant and Dropbox, is it possible to edit this to add an email button or just add an email button straight into the UI bar?
I'm guessing that this cannot be done without using Obj-C. perhaps it will be included in later versions.

Silverlight - Lync Application nested in a table

I'm very new in Silverlight and the Lync-SDK. So sorry for the question from a beginner.
Long time ago, i wrote al little web application, based on php for reading out contacts from a sql database.
Now the customer expand his envoirement and place Lync. Now he want the little Lync-Status-Square in the webapplication for click to call features.
I playing a little bit with the SDK of lync.
The following problem comes up. The square of Lync is nested in a td of my table. But the Lync-Silverlight-Applet need dynamical space for hover effects or single clicks. But in my table, i have no space, specially dynamic space.
So i switch off all hover and click functionality and place the follwing buttons in the StackPanel separate.
PresenceIndicator
StartInstanceMessagingButton
StartAudiCallButton
SendEmailButton
Two of them are fine.
Clicking on the IM-Button, The Lync Client opens the right Contact in IM-Mode and i can directly type a message. Perfect!
Clicking on the Mail-Icon, an Mail-Client will open, perfect.
The PresenceIndicator just display the color, not the exactly state, thats a problem, when the color is yellow. I can display the state in a TextBlock, but i prefer a label appears while hovering over the icon.
But my mainproblem is the StartAudioCallButton. This Icon is an dropDown-Icon. And i have no space for dropdowns. I would be so nice if this icon has the same behavoior like the IM-Button. The Lync Client will open in Call Modus and i can select, which callernumber i will use. Is that possible?
Thank you for Your time!
Frank
If you're having trouble with the layout of the standard Lync SilverLight controls, then the best thing to do is implement your own SilverLight controls for the function you're having difficulty with.
User Controls are really simple to create, there are plenty of tutorials on how to get started if you're not familiar with the process.
The Lync SDK has some great walkthroughs to get you up and running with signing in to Lync and placing an audio call
I don't know of any way to get Lync to open in a Call Mode as you suggested, but if you're limited with screen space, maybe you could have your custom StartAudioCallButton open a popup with the phone numbers in?

Picasa Custom Button Problem

I have started creating a custom button for Picasa to be able to upload some photos to a website. I followed the guidance found here. It works fine so far but now I have made a small change to the button and picasa will not refresh the button no matter what I try.
Adding a link like this:
Acme Inc. Uploader
to a page with access to your PBZ file will cause Picasa to open and instal the button. I made a small change and tried again. It updated once but now it refuses. I tried changing the name of the button, the version of the button, nothing works. Only the original button remains in Picasa. I even remove the button from picasa, reboot just in case its in memory somewhere, then tried again and still only original button remain.
The google group associated with the API does not appear to be very active. One other person asked about the same thing but there was no response. Searching the web found no other answers. I hope someone here has some experience with this.
I found a buttons folder in the picasa folder on the hard drive but my custom button was not in there. I have no idea why it keeps finding the old button.
I am using Picasa 3.1.0 on Windows XP if that makes any difference.
So the question: does anybody have experience building these custom buttons and/or encountered this situation before?
Thanks