Results 1 to 12 of 12

Thread: [Resolved] Internet Browser shortcut with Infinite Loop

  1. #1

    Thread Starter
    Member Jericho's Avatar
    Join Date
    Mar 2009
    Posts
    36

    [Resolved] Internet Browser shortcut with Infinite Loop

    So I'm getting annoyed with this ffriend of min that keeps on asking for code off me for a VB assignemnt. Now I'd like to give him some code, but not the right code, (play a joke on him...he...he..). So thats the reason I'd like to write a infinite loop program for Internet Explorer.

    Would such Visual Basic program be possible?

    I'm not going to write anything epic, but probably just the event handler to a button that keeps uploading internet explorer on a infinite loop after clicking.

    I know morally, this is wrong. I would rather be an ass than a lazy bastard.
    Last edited by Jericho; May 12th, 2009 at 12:40 AM.

  2. #2
    Addicted Member
    Join Date
    Dec 2002
    Posts
    167

    Re: Internet Browser shortcut with Infinite Loop

    <ignore>
    There aren't many problems that ten gallons of gas and a large nose can't cure. Only problem is, most of us don't have ten gallons of gas lying around.

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Internet Browser shortcut with Infinite Loop

    Maybe you should just say "no" to your friend.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  4. #4
    Master Of Orion ForumAccount's Avatar
    Join Date
    Jan 2009
    Location
    Canada
    Posts
    2,802

    Re: Internet Browser shortcut with Infinite Loop

    you realize making an infinite loop is probably the easiest thing to do in coding?

    Code:
    do while true
         messagebox.show("get your own code")
    loop

  5. #5

    Thread Starter
    Member Jericho's Avatar
    Join Date
    Mar 2009
    Posts
    36

    Re: Internet Browser shortcut with Infinite Loop

    He might be lazy with his code, however hes productive with his pestering for code.

    Come on, its a simple boolian question: Is it possible to write such a program, that would open IE as shortcut?

  6. #6
    Master Of Orion ForumAccount's Avatar
    Join Date
    Jan 2009
    Location
    Canada
    Posts
    2,802

    Re: Internet Browser shortcut with Infinite Loop

    if you just want to infinitely open internet explorers just do a process.start inside an infinite loop.

    Quote Originally Posted by MundoDragon
    <ignore>
    This is quite the opposite of what you just did.

  7. #7

    Thread Starter
    Member Jericho's Avatar
    Join Date
    Mar 2009
    Posts
    36

    Re: Internet Browser shortcut with Infinite Loop

    Cheers ForumAccount, I can figure it out from here.

  8. #8
    Addicted Member
    Join Date
    Dec 2002
    Posts
    167

    Re: Internet Browser shortcut with Infinite Loop

    Quote Originally Posted by ForumAccount View Post
    if you just want to infinitely open internet explorers just do a process.start inside an infinite loop.



    This is quite the opposite of what you just did.
    lol...I couldn't just <ignore> without letting him KNOW, now could I? It's not in the human nature....lol
    There aren't many problems that ten gallons of gas and a large nose can't cure. Only problem is, most of us don't have ten gallons of gas lying around.

  9. #9

    Thread Starter
    Member Jericho's Avatar
    Join Date
    Mar 2009
    Posts
    36

    Re: Internet Browser shortcut with Infinite Loop

    Quote Originally Posted by MundoDragon View Post
    lol...I couldn't just <ignore> without letting him KNOW, now could I? It's not in the human nature....lol
    Surrre, you were probably just looking to icrease your postcount!

  10. #10
    Master Of Orion ForumAccount's Avatar
    Join Date
    Jan 2009
    Location
    Canada
    Posts
    2,802

    Re: [Resolved] Internet Browser shortcut with Infinite Loop

    i think it would be more 'fun' to make a fake messagebox that just says "Are you going to stop asking for code?" with a Yes/No. but, if he trys to go click "No" the button randomly moves or something. that way you could so something annoying like:


    do while mycustommsgbox.dialogresult <> windows.forms.dialogresult.yes
    loop

    Which will loop infinitely until he clicks yes or kills the process

  11. #11
    Addicted Member
    Join Date
    Dec 2002
    Posts
    167

    Re: Internet Browser shortcut with Infinite Loop

    Quote Originally Posted by Jericho View Post
    Surrre, you were probably just looking to icrease your postcount!
    oh yeah, that can be believed as I've been a member for 7 years and have a post count of 100. I'm always looking for an opportunity to increase my post count!
    There aren't many problems that ten gallons of gas and a large nose can't cure. Only problem is, most of us don't have ten gallons of gas lying around.

  12. #12

    Thread Starter
    Member Jericho's Avatar
    Join Date
    Mar 2009
    Posts
    36

    Re: [Resolved] Internet Browser shortcut with Infinite Loop

    Indeed MundoDragon. Indeed. Also, it seems you arnt ignoring this thread now.

    Also for anyone that looks or magically googles this thread in the future. Behold:

    Imports System
    Imports System.Diagnostics
    Imports System.ComponentModel
    Public Class Form1
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Process.Start("IExplore.exe")
    loop
    End Sub
    End Class
    Last edited by Jericho; May 12th, 2009 at 08:57 AM.

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