[RESOLVED] Controlling A Program Through A Webpage
Not sure where to post this, so please move if you see it should be elsewhere.
Now basically what i want to do is, similar to what a few programs these days do. Where a website, wether on the Internet, or a HTML page on your computer can control your program. For example, a HTML page that shows up in a Web Browser object in the application, and there are links (either images or text) that when clicked will react with the program to click a button, change settings, open windows or dialogs, etc. Is this possible? I've seen it in a few programs before, so I'm guessing it is possible, properly hard to do though.
It's in the right place, and I think what you're looking for is the webbrowser_beforenavigate option
If you had links like "vb:clickbutton" in your HTML and clicked it in the webbrowser, beforenavigate would be fired and you would get URL sent with it...URL would in that case be "vb:clickbutton" and you would know to webbrowser.stop and then do what you wanted with the URL...you see?
I love helping noobs with their VB problems (probably because, as an amateur programmer, I am only slightly better at VB than them :-)) but if you SERIOUSLY want to get help for free from a community such as VBForums, you have to first have a grounding (basic knowledge) in VB6, otherwise you're way too much work to help...You've got to give a little if you want to get help from us, in other words!
And we DON'T do your homework. If your tutor doesn't teach you enough to help you make the project without his or her help, FIND A BETTER TUTOR or try reading books on programming! We are happy to help with minor things regarding the project, but you have to understand the rest of it if you want our help to be useful.
It's in the right place, and I think what you're looking for is the webbrowser_beforenavigate option
If you had links like "vb:clickbutton" in your HTML and clicked it in the webbrowser, beforenavigate would be fired and you would get URL sent with it...URL would in that case be "vb:clickbutton" and you would know to webbrowser.stop and then do what you wanted with the URL...you see?
Ah, i see, thats interesting. I see exactly what you mean. Could you give me a small example of how the code should look and what objects i would need?
Only object you need is the webbrowser and of course the button you want clicked (or action you want taken, of course. And regarding code, I should be able to write a quick project, I'll post it soon
I love helping noobs with their VB problems (probably because, as an amateur programmer, I am only slightly better at VB than them :-)) but if you SERIOUSLY want to get help for free from a community such as VBForums, you have to first have a grounding (basic knowledge) in VB6, otherwise you're way too much work to help...You've got to give a little if you want to get help from us, in other words!
And we DON'T do your homework. If your tutor doesn't teach you enough to help you make the project without his or her help, FIND A BETTER TUTOR or try reading books on programming! We are happy to help with minor things regarding the project, but you have to understand the rest of it if you want our help to be useful.
I love helping noobs with their VB problems (probably because, as an amateur programmer, I am only slightly better at VB than them :-)) but if you SERIOUSLY want to get help for free from a community such as VBForums, you have to first have a grounding (basic knowledge) in VB6, otherwise you're way too much work to help...You've got to give a little if you want to get help from us, in other words!
And we DON'T do your homework. If your tutor doesn't teach you enough to help you make the project without his or her help, FIND A BETTER TUTOR or try reading books on programming! We are happy to help with minor things regarding the project, but you have to understand the rest of it if you want our help to be useful.
I love helping noobs with their VB problems (probably because, as an amateur programmer, I am only slightly better at VB than them :-)) but if you SERIOUSLY want to get help for free from a community such as VBForums, you have to first have a grounding (basic knowledge) in VB6, otherwise you're way too much work to help...You've got to give a little if you want to get help from us, in other words!
And we DON'T do your homework. If your tutor doesn't teach you enough to help you make the project without his or her help, FIND A BETTER TUTOR or try reading books on programming! We are happy to help with minor things regarding the project, but you have to understand the rest of it if you want our help to be useful.