PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: bbcode_highlight in ..../includes/functions.php on line 4197

PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: bbcode_highlight in ..../includes/functions.php on line 4197
How to open a web page hidden ?-VBForums
Results 1 to 17 of 17

Thread: How to open a web page hidden ?

  1. #1

    Thread Starter
    Frenzied Member Jmacp's Avatar
    Join Date
    Jul 2003
    Location
    UK
    Posts
    1,959

    How to open a web page hidden ?

    Well i have tried this but to no avail, is there a way to shell open a web page hidden ?

    VB Code:
    1. Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
    2.  
    3.  
    4. Const SW_HIDE = 0
    5.  
    6. Private Sub Command1_Click()
    7. ShellExecute hwnd, "open", "http:\\[url]www.google.com[/url]", 0, 0, SW_HIDE
    8. End Sub

  2. #2
    Hyperactive Member
    Join Date
    Nov 2003
    Location
    In Front of my computer...
    Posts
    367
    why hidden ?

  3. #3
    Lively Member
    Join Date
    Jan 2004
    Posts
    87
    what i do to hide my web sites is make a web browser hit the site but make the form invisable

  4. #4

    Thread Starter
    Frenzied Member Jmacp's Avatar
    Join Date
    Jul 2003
    Location
    UK
    Posts
    1,959
    Yeah but i dont want an extra control, i.e the web browser control.

  5. #5
    Addicted Member
    Join Date
    Mar 2004
    Posts
    146
    if you want you could just have the window popup and then close the window after X seconds...that would probably make the user happier because he'd probably like to know what's going on in his computer .

    By the way, a search turns up a bunch of results. Both on Google and on this website. Here's a good link:

    http://www.vbforums.com/showthread.p...hidden+website
    Last edited by rehto; Mar 27th, 2004 at 03:51 PM.

  6. #6

    Thread Starter
    Frenzied Member Jmacp's Avatar
    Join Date
    Jul 2003
    Location
    UK
    Posts
    1,959
    Anybody got any ideas at all ?

  7. #7
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171
    Originally posted by EJ12N
    why hidden ?
    Same here...


    Has someone helped you? Then you can Rate their helpful post.

  8. #8
    Fanatic Member invitro's Avatar
    Join Date
    Jan 2000
    Location
    Outside your window
    Posts
    547
    oh god, this sounds like some kind of 'secret popup junk ads' thing... like we need more of those
    ok, so... windows takes 1 minute to search for a file on my PC yet google.com takes 1 second to search the entire internet?

  9. #9
    Hyperactive Member
    Join Date
    Apr 2002
    Location
    UK
    Posts
    506
    Tell us more about what you're trying to do and why, might be able to help you more that way.

    By hidden you don't mean minimized do you?

    -adehh

  10. #10
    Member
    Join Date
    Mar 2004
    Location
    Texas
    Posts
    53
    Jmacp, your on the right track with the shell execute. In addition after launching the program id call ShowWindow:

    Code:
    Declare Function ShowWindow Lib "user32" Alias "ShowWindow" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long 
    Const SW_SHOW = 5
    So call:
    VB Code:
    1. call ShowWindow (hWnd,SW_SHOW)
    Where hWnd is the handle of the window you just shell executed. Which can be found by using a call to FindWindow or FindWindowEx

    http://www.mentalis.org/apilist/ShowWindow.shtml
    http://www.mentalis.org/apilist/FindWindow.shtml
    http://www.mentalis.org/apilist/FindWindowEx.shtml

    Goodluck and I hope this helps.
    Good programming site:
    *http://www.planet-source-code.com

    Our CS Clan Page:
    *http://h2p.inter-gamer.com/index.html

  11. #11
    Hyperactive Member
    Join Date
    Nov 2003
    Location
    In Front of my computer...
    Posts
    367


    i still dont understand why he wants it to be hidden....

  12. #12
    Registered User
    Join Date
    Feb 2004
    Posts
    62
    i dont know why you would use the ShellExecute command, why not winsock? or if you dont know how to use winsock, use the webbrowser control in vb, it's even easier than using the shellexecute command. he probably wants it hidden, because he's hiding something from the user, probably some banner the user clicks on to make him money(those 2cent clicks ad) or maybe im wrong.

  13. #13
    Fanatic Member invitro's Avatar
    Join Date
    Jan 2000
    Location
    Outside your window
    Posts
    547
    Originally posted by Reki
    i dont know why you would use the ShellExecute command, why not winsock? or if you dont know how to use winsock, use the webbrowser control in vb, it's even easier than using the shellexecute command. he probably wants it hidden, because he's hiding something from the user, probably some banner the user clicks on to make him money(those 2cent clicks ad) or maybe im wrong.
    like i said.. its probably those websites that hide in the background and open up popup after popup after popup until you go insane
    ok, so... windows takes 1 minute to search for a file on my PC yet google.com takes 1 second to search the entire internet?

  14. #14
    Hyperactive Member
    Join Date
    Nov 2003
    Location
    In Front of my computer...
    Posts
    367
    invitro might be right

  15. #15
    Member
    Join Date
    Mar 2004
    Location
    Texas
    Posts
    53
    Originally posted by Reki
    i dont know why you would use the ShellExecute command, why not winsock? or if you dont know how to use winsock, use the webbrowser control in vb, it's even easier than using the shellexecute command. he probably wants it hidden, because he's hiding something from the user, probably some banner the user clicks on to make him money(those 2cent clicks ad) or maybe im wrong.
    WOW you people are so EVIL! Gotta assume the worst! And it's all cuz of the way he worded his question. If he would of had said something along the lines of hiding a 3rd party program with a button click I bet no1 would have said anything. Anyways on ShellExecute, the last param, SW_SHOW is the only thing that will work, SW_HIDE and others wont work, to prevent launching a program hidden lmao. ANYWAYS I think im the only 1 here that doesnt see ant 'evil' intent, compared to what other people wanted to know! Now if he asked how to do that AND hide the task from ctrl+alt+delete, yea lol i'd be a lil suspicious. Later all

    Good programming site:
    *http://www.planet-source-code.com

    Our CS Clan Page:
    *http://h2p.inter-gamer.com/index.html

  16. #16
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    Originally posted by Insane_Magician
    WOW you people are so EVIL! Gotta assume the worst! And it's all cuz of the way he worded his question. If he would of had said something along the lines of hiding a 3rd party program with a button click I bet no1 would have said anything. Anyways on ShellExecute, the last param, SW_SHOW is the only thing that will work, SW_HIDE and others wont work, to prevent launching a program hidden lmao. ANYWAYS I think im the only 1 here that doesnt see ant 'evil' intent, compared to what other people wanted to know! Now if he asked how to do that AND hide the task from ctrl+alt+delete, yea lol i'd be a lil suspicious. Later all

    Think of it this way... what is the point of making it invisible? What does he have to hide?
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  17. #17
    Hyperactive Member
    Join Date
    Nov 2003
    Location
    In Front of my computer...
    Posts
    367
    Originally posted by BuggyProgrammer
    Think of it this way... what is the point of making it invisible? What does he have to hide?
    agree with you....what;s the point unless he got something he doesnt want people to see... uhmm i wonder what would be
    Born to help others
    (If I've been helpful then please rate my post. Thanks)

    call me EJ or be slapped!

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width