Results 1 to 16 of 16

Thread: need help with VB

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2008
    Posts
    13

    need help with VB

    hello

    i am new to this forum i came here to get some help i don't vb at all
    i want to create a web page and want to put some vb function there
    i want to create a web page when it is loaded mouse pointer automaticall move to a certain definde place and click there

    please tell me is it possible by vb and yes so please give it's script

    with thanks

    bye

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: need help with VB

    Welcome to the forums.

    If you want to create a web page, then why are you attempting to use a desktop based language like Visual Basic rather than a web based language like ASP, or HTML, or PHP, or something along those lines?

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2008
    Posts
    13

    Re: need help with VB

    i want and did ask to people who know javascript but they said it is not possible by javascript

    and i think vb script is also used in web pages


    Quote Originally Posted by Hack
    Welcome to the forums.

    If you want to create a web page, then why are you attempting to use a desktop based language like Visual Basic rather than a web based language like ASP, or HTML, or PHP, or something along those lines?

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: need help with VB

    You are correct....VBScript is used in web pages.

    However, VBScript and VB6 are different animals, and what works in one might not work in the other, so I'm moving your thread to the VBScript section.

    Moved

  5. #5

    Thread Starter
    New Member
    Join Date
    Aug 2008
    Posts
    13

    Re: need help with VB

    thanks hope i will get best help there

    Quote Originally Posted by Hack
    You are correct....VBScript is used in web pages.

    However, VBScript and VB6 are different animals, and what works in one might not work in the other, so I'm moving your thread to the VBScript section.

    Moved

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: need help with VB

    Yes, it is possible with JavaScript and VBScript as well. But it depends on whether the button you want to click is on the page itself or outside the brwoser window.

  7. #7

    Thread Starter
    New Member
    Join Date
    Aug 2008
    Posts
    13

    Re: need help with VB

    thanks for replying can you please give me script for that

    Quote Originally Posted by mendhak
    Yes, it is possible with JavaScript and VBScript as well. But it depends on whether the button you want to click is on the page itself or outside the brwoser window.

  8. #8
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: need help with VB

    As mentioned earlier,

    "But it depends on whether the button you want to click is on the page itself or outside the browser window."

  9. #9

    Thread Starter
    New Member
    Join Date
    Aug 2008
    Posts
    13

    Re: need help with VB

    hello please give me script to put in web page
    please do reply


    Quote Originally Posted by mendhak
    As mentioned earlier,

    "But it depends on whether the button you want to click is on the page itself or outside the browser window."

  10. #10
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: need help with VB

    I'm going to try to ask my question in another way.

    Do you want to click a button on the same page or in a window outside that web page?

  11. #11

    Thread Starter
    New Member
    Join Date
    Aug 2008
    Posts
    13

    Re: need help with VB

    i want to create a web page there will a tabel in the page when any one visit that page visitor mouse automatically moves to that table click all the books url or any url that is defined to it

    is this possible by vb i asked some javescript expert and they denied even without think they said no it can'tbe done by javascript

    please sir do tell me can it be done by vb

    thanks bye

    Quote Originally Posted by mendhak
    I'm going to try to ask my question in another way.

    Do you want to click a button on the same page or in a window outside that web page?

  12. #12
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: need help with VB

    Whoever said it isn't possible was right... to understand why, you need to know what a hyperlink is. It's just a bit of text that sits on a page; when a user clicks on it, the browser creates a request and navigates to the target page. You want that when the page is loaded, the javascript goes over and automatically clicks on all of the hyperlinks. That doesn't make sense, because only one link at a time will ever work. For example, when you go to the home page on vbforums, you can only left click on one hyperlink - it will take you to that page. Linear flow. You can't be in multiple places at the same time in the same window.

    You can get your javascript to go through the hyperlinks, get the URLs and force new popup windows that go to those URLs.

  13. #13

    Thread Starter
    New Member
    Join Date
    Aug 2008
    Posts
    13

    Re: need help with VB

    but vb script is bigger language then javascript why it even not possible by vb when mouse movement can be controled by vb so there must be some way to do


    Quote Originally Posted by mendhak
    Whoever said it isn't possible was right... to understand why, you need to know what a hyperlink is. It's just a bit of text that sits on a page; when a user clicks on it, the browser creates a request and navigates to the target page. You want that when the page is loaded, the javascript goes over and automatically clicks on all of the hyperlinks. That doesn't make sense, because only one link at a time will ever work. For example, when you go to the home page on vbforums, you can only left click on one hyperlink - it will take you to that page. Linear flow. You can't be in multiple places at the same time in the same window.

    You can get your javascript to go through the hyperlinks, get the URLs and force new popup windows that go to those URLs.

  14. #14
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: need help with VB

    It's not bigger, it's roughly the same. It allows you to use ActiveX controls as objects in the script, which JavaScript allows as well - that is what you may be perceiving as 'bigger'. In the end though, the ActiveX component that you may want to use in your script needs to be written in VB6 and exist on the user's machine.

  15. #15
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: need help with VB

    Also keep in mind that VBScript is not the same as VB6.

  16. #16

    Thread Starter
    New Member
    Join Date
    Aug 2008
    Posts
    13

    Re: need help with VB

    i though i would get best reply form this forum but anyway thanks for replying


    Quote Originally Posted by mendhak
    Also keep in mind that VBScript is not the same as VB6.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width