I'm trying to build a application which logs you into instagram. I've got it to input the username + password no problem
However, when i go to get the ID for the submit button their isnt one.. and i've been using .GetElementById. Is their anyway around this?
I'm pretty new to visual basic so please dumb it down to simpleton terms!
Thank you in advance!
Getting elements by ID is not the only solution. You can always get them by it's names or you can find the element by yourself. Just look at the whole page's source code, search for something spesific that button carries and invoke it. Visual basic's library can be insufficient for situations like that.
WebBrowser1.Document.GetElementById("username").InvokeMember("select")
WebBrowser1.Document.ActiveElement.Focus()
SendKeys.Send("{ENTER}")
This is the code that works! Change the "username" ID to the form you will be changing, then it focuses onto it and presses enter! Simulating the submit button.
Related
I'm currently using Odoo 12.0+e-20181025. I'm trying to edit the message the user get whenever a ticket is assigned to them. I've tried searching the email template, but I can't find it. I've also tried searching in the main folder, but I still can't find it. As of now, I only managed to make a similar template, but I also found some trouble in that task as I can't really emulate the button that can link right to the ticket editing form, only to the preview ticket window.
Here is the code for the link to the ticket:
${object.name} .
While knowing how to make a proper link will help a lot, I would still prefer to know where I can edit the message template so I can make it more user friendly and informative.
Thanks for reading and for the help.
I am working on a UWP app and I'm basically trying to do exactly what Facebook does with their app when composing a post.
Basically I want to be able to type text and At Mention someone in the RichEditBox. The person's name should be highlighted and when I tap on it I should be able to invoke a Command in my view model. Also once I hit send, I need to parse out what is text and what's a link to a person's account. I've played around a lot with the RichEditBox but can't quite figure this out.
Does anyone have any hints or ideas? I'm thinking I'll have to keep track of my object's position on every keystroke, just wondering if there's a cleaner way to do it.
You could use the RichTextBox.Document.Selection.Link property to store a custom link to your entity (ex: "mention://JohnDoe")
https://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.text.itextrange.link.aspx
First of all, go to Facebook. Then make sure you're not logged in. When you log out of Facebook it will bring you to the log in/sign up page. At the bottom of the Sign Up section, after the user has filled out their information, there is a green button with rounded edges that says "Sign Up".
What I want is to create that exact button on my form in Visual Basic. I've been trying to create a form that looks almost exactly like the Facebook sign up page, just a little different. I have a lot to do still. But so far, this is what I have: http://tinypic.com/r/2zz1cwm/8 (Sorry I can't upload pictures in my posts here yet, requires 10 reputation points. Soon enough though. For now, I have to upload the pictures to tinypic, then get the url and post it here.)
The button I made was very difficult for me to make, I had to go on YouTube to find out how to make a rounded button, and it looks horrible, absolutely horrible. I cannot use a button looking like that. You can see the pixels! :(
So what I'm trying to learn is how to make a button that looks exactly like the Facebook sign up button. Any suggestions? And please, don't just give me the code to do it. Explain it a little so I know what I'm doing exactly. I don't want to just take code and put it in my program and be done with it. I want to know what I'm doing. Thank you very much for reading my question and for lending a hand. I appreciate any and all help. Have a wonderful day.
http://www.vbforums.com/showthread.php?611776-RESOLVED-round-button. hope this helps you out . you should download a few vb pdf's from google that will help you a lot to get the basics .
Solved my own problem.
Use a picture box instead of a button. Double click the picture box and add the code as if you were for a button. For example, when you click my picture box it opens form2. Because I put form2.show() in the button_click section.
Hooray for figuring it out on my own! Took me long enough. Two days..
I need to resend an email to a user in case the user requests it, from the back-end.
I want to handle the logic in a separate template than the one I trigger the view from.
I figured using a Pop-up would be the best approach for this, but Django doesn't seem to provide any documentation on this.
I have checked out a few posts similar to what I am looking for like, http://www.hoboes.com/Mimsy/hacks/replicating-djangos-admin/ , but they are either too old or too different.
I would really appreciate a nudge in the right direction.
I rolled my own version using guidelines from this links, Open link in Popup Window with Javascript. I hope somebody else finds it helpful.
I'm working with Symfony 2 and need some advice.
I have a Controller, which gets a form-request and searches the database for matches and renders the results (so it's just a basic search).
Now I would like to redirect to this controller but without coming from a form.
To be more specific:
I'm on the search-page, fill out the form and hit the search button -> I get results for my search.
I'm somewhere else and want to delete a labelCategory of a book -> If some books still use this labelCategory, I want to get search results for this labelCategory.
My only idea so far is, to simulate the form submit somehow, but I didn't find out how to do it.
I'd be happy for every help of you ;)
You don't need form submit at all. Just put logic of searching to separate class. Than you can it in any controller you want. Maybe Service Container doc can help to